HTTP Status CodesBy Spear Fox
Did you just see a page with numbers that isn't the right one you requested for, when surfing ? Are you thinking for a reason why did this just happen to me ? Wondering what you could do for such a situation ? Is there really a problem with your system ?
Just skim through this blog's to get more information.
When you are surfing the internet, at times you may endup reaching a page that says any one these most commonly encountered text "HTTP Error 404", "Internal Server Error", "Service Unavailable". Did you think why this happens to me ? Let me explain you in detail about these status codes and what you can do for this.
There are a total of 5 standard classes of response and the response codes are usually 3 digit numbers.
| Status Number Range | Class Description |
|---|---|
| 100-199 | Informational status |
| 200-299 | Success status |
| 300-399 | Redirection status |
| 400-499 | Client errors |
| 500-599 | Server errors |
These code number indicating the result of your browser's request will be sent along with the HTTP response from the server.
Let us have a look at some of the commonly known status codes, their meanings and what action you could take for those response numbers.
| HTTP 200 "OK" |
|---|
Did you see this status code? then you should probabily be happy by now. It is a success message that is found in your response header, most browsers won't display this response code rather will show you the requested resource on your screen. |
| Requires no action from you, because everything is alright buddy ! |
| HTTP Error 404 "Not Found" |
|---|
Okay, now you got a problem. You requested for a resource in the server and the requested resource is not available in the server. A resource could be a webpage, image, etc. This error might occur if you enter a wrong URL manually or if the web server admin removes the file without redirecting to a valid new location. |
| May be you should reach out to the web server admin to notify him about this error, only if you think you requested for a valid resource here. If not check your request URL and try again. |
| HTTP Error 500 "Internal Server Error" |
|---|
Now it is the server's turn, yes there is some problem with the server. Despite the web server receiving a valid request from you, it was not able to process it. Mostly it is due to some general technical glitch like low memory or disk space. |
| Nothing you could do about it, if you wish and if you know the web server admin send him a message. "Hey buddy, I tried to access your website with this URL but unfortunately I got 500 error, just have a look at it." Perhaps he/she will send you a thank you note for that. |
| HTTP Error 503 "Service Unavailable" |
|---|
This is the twin sibbling of HTTP Error 500, some servers use 503 to indicate expected failures, due to the limitation on the number of concurrent users or server utilization (Bandwidth, RAM memory, CPU utilization). |
| Do the same like you did for her twin sibbling. Send the admin, a note to check this issue because he might lose his business. |
| HTTP 301 "Moved Permanently" |
|---|
Maybe you trying to call the old URL, which is now permanently moved to a different location, this allows the client to send a new request and fetch the resource from new location. |
| You have nothing to do here, your web browser will automatically redirect you. |
| HTTP 302 "Found" or "Moved Temporarily" |
|---|
This is the temporary version of redirect similar to code 301, but HTTP 302 was designed for cases where the resource is moved temporarily rather than permanently. |
| Server admin uses this mostly during website maintenance period, so give him sometime to amaze you with new contents. |
| HTTP 400 "Bad Request" |
|---|
When the web server finds mistake with the protocol(set of rules framed) data received from the client it will result in this status code. |
| Just try refreshing the browser and still if this issue continues contact your Internet Service Provider (or) Operating system customer support. |
| HTTP 401 "Unauthorized" |
|---|
Are you trying to access resource that are protected by the server ? If yes then this status code will be displayed in your browser. The reason being is you are not authorized to access this content. |
| If you are the server admin then you need to fix this by logging into the server. If not please do not try to access such contents. |
| HTTP 204 "No Content" |
|---|
This is a test status code that programmers use to analyze if their server is ready to respond more efficiently. This makes them free from refreshing the page very often. |
| No action is required from you as your browser will take care of the remaining. |
| HTTP 502 "Bad Gateway" |
|---|
This is a configuration error that could result in this status code, any of these "Network firewall", "Router" or "Network gateway devices" has a config error. |
| In this case you need to contact your network administrator for suggestions. |
To know more about other status code Click Me.
Thank you for your time taken in reading this blog. To show your support please like us in Facebook.