Understanding HTTP Status Codes: Why You Got a "404 Not Found" Error!
Researched by Bismoy Ghosh
Did you ever try to visit a webpage and get hit with "404 NOT FOUND"? 😴😴
It’s a common but sometimes frustrating error. But what exactly does 404 mean? 🤔
What is a 404 Error?
A 404 Not Found error is an HTTP status code that tells your browser the webpage you're looking for doesn't exist on the server. This could be because the page has been removed, the URL was typed incorrectly, or the website has changed its structure.
But 404 isn’t the only HTTP status code you’ll encounter. There are many more, each representing a different kind of response from a web server. Let’s explore them!
---
The Complete List of HTTP Status Codes
1xx – Informational Responses
These codes indicate that the request was received and understood but is still in progress.
100 Continue – The server received the request headers and is waiting for the body.
101 Switching Protocols – The client asked the server to switch communication protocols.
102 Processing – The server is processing the request, but no response is available yet.
---
2xx – Successful Responses
These codes indicate that the request was successfully processed.
200 OK – The request was successful, and the response contains the requested data.
201 Created – A new resource was created as a result of the request.
202 Accepted – The request was received but is still being processed.
203 Non-Authoritative Information – The response is from a third-party source.
204 No Content – The request was successful, but there’s no content to return.
205 Reset Content – The request was successful, and the client should reset the document view.
206 Partial Content – Only part of the requested data is sent (often used for downloads).
---
3xx – Redirection Responses
These codes indicate that further action is needed from the client.
300 Multiple Choices – There are multiple possible responses to choose from.
301 Moved Permanently – The requested resource has been permanently moved to a new URL.
302 Found – The resource has been temporarily moved.
303 See Other – The requested resource can be found at another location.
304 Not Modified – The resource hasn’t changed since the last request.
305 Use Proxy – The resource must be accessed via a proxy.
307 Temporary Redirect – The resource is temporarily moved, but use the original request method.
308 Permanent Redirect – The resource has moved permanently, like 301 but preserves the request method.
---
4xx – Client Error Responses
These errors indicate that something went wrong with the request.
400 Bad Request – The server couldn't understand the request due to bad syntax.
401 Unauthorized – Authentication is required.
402 Payment Required – Reserved for future payment-related services.
403 Forbidden – You don’t have permission to access this resource.
404 Not Found – The requested page is missing.
405 Method Not Allowed – The request method is not supported.
406 Not Acceptable – The response is not acceptable according to the request headers.
407 Proxy Authentication Required – Authentication is required via a proxy.
408 Request Timeout – The client took too long to send the request.
409 Conflict – There’s a conflict with the current state of the resource.
410 Gone – The resource has been permanently removed.
411 Length Required – The request is missing a required content length.
412 Precondition Failed – The request conditions were not met.
413 Payload Too Large – The request body is too large for the server to handle.
414 URI Too Long – The requested URL is too long.
415 Unsupported Media Type – The server doesn’t support the request format.
416 Range Not Satisfiable – The requested range cannot be fulfilled.
417 Expectation Failed – The server cannot meet the Expect header requirements.
418 I'm a teapot – An April Fool’s joke status code!
429 Too Many Requests – You’ve made too many requests in a short period.
---
5xx – Server Error Responses
These errors mean the problem is on the server side.
500 Internal Server Error – A generic error when something goes wrong on the server.
501 Not Implemented – The requested functionality is not supported.
502 Bad Gateway – The server received an invalid response from another server.
503 Service Unavailable – The server is overloaded or under maintenance.
504 Gateway Timeout – The server didn’t receive a timely response from another server.
505 HTTP Version Not Supported – The server doesn’t support the HTTP version used.
---
Final Thoughts
Next time you see a 404 Not Found or 500 Internal Server Error, you’ll know exactly what’s happening! HTTP status codes help browsers and servers communicate effectively, ensuring a smooth browsing experience.
If you ever find
yourself stuck on a 404 page, check the URL, refresh the page, or try searching for the content elsewhere!
Got questions? Drop a comment below! 🚀
.png)
Comments
Post a Comment