TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Hang for a number of seconds, then respond

GEThttps://api.testingapis.com/api/chaos/timeoutSign in to see this endpoint's URL

Use this to test client timeouts. The wait stops as soon as the client disconnects.

Parameters 1

NameTypeDescription
secondsquery · integer (int32)How long to hang (1-60, default 30). Default: 30.

Responses

200
Response after the wait.

Example

Request
curl -X GET "https://api.testingapis.com/api/chaos/timeout?seconds=1" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{"message": "Responded after 1s — your client did not time out.", "seconds": 1}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.