How to delay response from mock server for more than three minutes?

Archived topic — some details may be out of date.
Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as files in your Git repository, which you can run locally or deploy. Create one in the app, or use the Postman CLI to generate one from an OpenAPI spec, collection or dataset (postman mock generate) and run it (postman mock run). See About mocks and Create a mock.
Working with an AI coding agent? The Postman plugin can build and run mocks for you.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

  1. How can i delay the response from the mock server for more than three minutes? The mock server sets the limit at 180000ms

  2. Is it possible to mock a request-timeout scenario using Postman mock server. For example, if my server takes more than 9 seconds to respond, I want to throw a request timeout error

Hi @charleslandvoice

As far as my knowledge goes … No, 3 minutes would be the max.

And I think the second question would be achieved using the “Keep-Alive” header, with the “timeout” parameter.

There is more info and examples here;