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

**URL:** <https://community.postman.com/t/how-to-delay-response-from-mock-server-for-more-than-three-minutes/36266>\
**Category:** Help Hub\
**Tags:** mockservers, just-getting-started\
**Created:** [June 16, 2022, 10:05am UTC](https://community.postman.com/t/how-to-delay-response-from-mock-server-for-more-than-three-minutes/36266 "2022-06-16T10:05:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![charleslandvoice](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@charleslandvoice](https://community.postman.com/u/charleslandvoice)\
**Post date:** [June 16, 2022, 10:05am UTC](https://community.postman.com/t/how-to-delay-response-from-mock-server-for-more-than-three-minutes/36266/1 "2022-06-16T10:05:04Z")

</div>

> **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](https://learning.postman.com/docs/design-apis/mock-apis/mocks/overview) and [Create a mock](https://learning.postman.com/docs/design-apis/mock-apis/mocks/create-a-mock).  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) can build and run mocks for you.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

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

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [June 22, 2022, 6:14pm UTC](https://community.postman.com/t/how-to-delay-response-from-mock-server-for-more-than-three-minutes/36266/2 "2022-06-22T18:14:57Z")

</div>

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;

> **[Keep-Alive - HTTP | MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive)**
>
> The Keep-Alive general header allows the sender to hint about how the connection may be used to set a timeout and a maximum amount of requests.
