temp-api
← Back to Mock APIs

Mock HTTP Debugging API

Simulate status codes, latency, and request echo for error handling, timeouts, retries, and loading states.

Data3 endpoints Base URLhttps://www.temp-api.com/en/mock Response{ code, message, data, meta }

Endpoints

GET/en/mock/status/404

Return a chosen HTTP status: 200/201/400/401/403/404/410/429/500.

Open
GET/en/mock/delay/2

Delay the response by 0–3 seconds to test timeouts and loading states.

Open
POST/en/mock/echo

Echo the request method, query parameters, and JSON body (up to 64KB).

Fields

FieldTypeDescription
statusnumberHTTP status to simulate
secondsnumberDelay in seconds, 0–3
bodyobjectJSON body echoed back

Notes

  • Status supports 200/201/400/401/403/404/410/429/500; delay is capped at 3 seconds; echo is capped at 64KB.

Example

curl "https://www.temp-api.com/en/mock/status/404"
curl "https://www.temp-api.com/en/mock/delay/2"
{
  "code": 404,
  "message": "simulated 404"
}