I am writing an application to report to the user(devs) when their website fails. And what I mean by fails which is unfunctional or needs to report the problem to devs. I do understand that status code 2XX means 'Success' according to wiki. But does that really do? I have access my website once and returned 204 'No-Content', which is unfunctional to me. So the question is, what are the list of status codes return should It be considered website is functional?
Which HTTP status codes are really OK?
web development;programming practices;http response
Every code is acceptable in some circumstances, but indicate a problem in other circumstances.Take 404. It may indicate:that a link on your website is broken (which is actually a problem you may want to fix),that the client is trying deliberately to break the website (which is a problem too, but should be included in security reports instead),that somewhere, some website has a broken link or that a person misspelled an address (which doesn't matter, since you can't do anything with it),or that the page is not intended to exist (which is an expected situation and should not worry anybody). Example: /wpad.dat.Take 200. It may indicate:a success,or that your security system is not working any longer, and is not forbidding the access to some very confidential web page to guests (the only acceptable response being 401 Unauthorized).If you want to report problems to developers, do it the right way: through logging and exception handling, not through something which was never intended for that, like HTTP status codes.