requestTimeout

The time in milliseconds after which the server stops processing the request.

Applies to: all services

Value: a positive integer, in milliseconds. The default is 5 minutes (300,000), and 10 seconds for format=HTML. A value above 5 minutes is refused with an error.

Use this parameter when your application needs to abandon a slow request sooner than the default. It frees the request on the server, which reduces the number of requests that count against your parallel request limit and can prevent responses with HTTP status 429.

A request that is stopped is reported with the error CLIENT_REQUEST_TIMEOUT. When the server stops at its own limit, the error is SERVER_REQUEST_TIMEOUT.

Important: If the timeout occurs while the response is being sent, the data that has been sent is incomplete and not valid, and the status can still be 200 because it was sent first. A truncated response ends with a line starting -- Response truncated. Base your client logic on the time you waited, not on a possibly incomplete response.