httpdelay
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v34View latest version
A tiny service to get a response with a specified message, status code and delay (in milliseconds).
GET /<HTTP_STATUS_CODE>/<DELAY_IN_MILLISECONDS>/<RESPONSE_MESSAGE>
With "Accept: application/json" header it returns JSON
Example:
curl -v https://httpdelay.val.run/402/1500/HelloLarry
It returns "HelloLarry" content with 402 HTTP status code in 1500 ms
Delay is limited to 60000 ms (60 seconds)