HTTP is the protocol for transferring files across the World Wide Web, outlining how information is formatted and transmitted and the actions that browsers and web servers should take in response to certain actions.
Below are some of the most common Hypertext Transfer Protocol (HTTP) response status codes, which are responses provided by the web server and are often helpful when trying to identify the reason behind a problem.
- 200 OK - This is the standard response for a successful HTTP request.
- 201 Created - The request has executed, resulting in a new resource being created. This is often associated with POST requests.
- 301 Moved Permanently - The content requested has been moved and the current and any future requests should be directed to the URI provided.
- 400 Bad Request - The server is not able to or will not process the request due to an error perceived to be on the client side.
- 401 Unauthorized - Authentication is required and has failed or has yet to be provided.
- 403 Forbidden - The web server is configured to deny access to the resource requested by the client.
- 404 Not Found - The client successfully communicated with the web server but the resource requested was not found.
- 500 Internal Server Error - Generic error message when an unexpected condition is encountered and a more specific message is not suitable.
- 503 Service Unavailable - Currently the server is unavailable due to heavy traffic or down for maintenance. This is commonly a temporary state.