Mock Response

Sometimes in the course of development you may need to mock HTTP responses. This is a simple service to return various HTTP responses.

To call each error, simply append the response that you would like returned to the end of this sites URL, like so:{RESPONSE}

These responses are supported and can be called using these HTTP verbs: GET, POST, PUT, DELETE, OPTIONS, and PATCH.

Status Description
200 Successful
300 Multiple Choices
301 Moved Permanently
302 Found
303 See Other
304 Not Modified
305 Use Proxy
306 Switch Proxy
307 Temporary Redirect
308 Permanent Redirect
400 Bad Request
401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
407 Proxy Authentication Required
408 Request Timeout
409 Conflict
410 Gone
411 Length Required
412 Precondition Failed
413 Request Entity Too Large
414 Request-URI Too Long
415 Unsupported Media Type
416 Requested Range Not Satisfiable
417 Expectation Failed
418 I'm a teapot
422 Unprocessable Entity
423 Locked
424 Failed Dependency
425 Unordered Collection
426 Upgrade Required
449 Retry With
450 Blocked by Windows Parental Controls
451 Legally Restricted
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported
506 Variant Also Negotiates
507 Insufficient Storage
509 Bandwidth Limit Exceeded
510 Not Extended
timeout Waits 28 seconds before returning successfully.
hesitate Waits 5 seconds before returning successfully.

If something is missing, drop me a line at or fork the repo and submit a pull request.

Boost your developer-fu

Get simple tips on how to build a better web — delivered weekly.