Whatever you set the URL to, that HTTP code will be returned
codes.io
codes.io
Charles has a fairly neat way of making it all work.
Please support “451 Unavailable for legal reasons”.
or by individual code..
https://httpstatuses.com/200 https://httpstatuses.com/201 https://httpstatuses.com/404 https://httpstatuses.com/418
I also made a "return the HTTP code you request"-service like this, but with another design choice than in this one and some others like http://httpbin.org/, https://httpstatuses.com/, http://httpstat.us/.
Instead of specifying the requested HTTP code in the URL path, I put the requested HTTP code in the URL query, basically ignoring the URL path. In that way, the URL path -- the resource identification in a REST-styled API -- can stay whatever you want as you're specifying the requested status code as query parameter. This made testing a program that uses resources in a REST API easier, as I don't need to rewrite the URL path, but just require to add a query parameter in my test code.
Example: instead of http://example.com/404 I request http://example.com/resource/id?response=404 to get a 404 response. http://example.com/resource/another-id?response=200 gets a 200 code.
In this way, combining requested responses is also possible: http://example.com/resource/id?status=500&delay=2 to return a 500 after 2 seconds.
I couldn't figure out if this behavior is also possible with services specifying the desired responses in the URL path.
Examples: https://http.cat/418 - https://http.cat/451
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details."
Besides, 1223 isn't specified by the HTTP RFCs, nor is it returned anywhere except from a library call in a buggy library. I'd say it's not appropriate for an HTTP testing service to support 1223.
I opened an issue for that: https://github.com/SnootyMonkey/posthere.io/issues/4
rails would be
def status
render(text: params[:status], status: params[:status])
end$ curl -i codes.io/600
HTTP/1.1 -424 ???
...