Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a website that returns 500 (and other) HTTP response codes for testing?

It's occurred to me that it would be useful to have a URL that would always return a 500, for the sake of testing client code that handles getting bad responses. And I can think of other projects that would benefit from URLs that would always return 404s, redirects, etc. Does anyone know of a free website that offers this?

like image 996
Mark Avatar asked Jul 14 '14 12:07

Mark


People also ask

How do I find HTTP response code?

Just use Chrome browser. Hit F12 to get developer tools and look at the network tab. Shows you all status codes, whether page was from cache etc.

Which HTTP status code is usually returned when a resource was found and returned?

2 201 Created. The request has been fulfilled and resulted in a new resource being created. The newly created resource can be referenced by the URI(s) returned in the entity of the response, with the most specific URI for the resource given by a Location header field.


1 Answers

I believe http://httpstat.us/ can do that as well.

like image 134
Greg Humphreys Avatar answered Sep 27 '22 23:09

Greg Humphreys