Search This Blog

2023/04/25

Common HTTP status code and meaning

 HTTP (Hypertext Transfer Protocol) status codes are three-digit numbers returned by a

server in response to a client's request. The status codes provide information about the
request and response between the client and server. Here are some of the most commonly
used HTTP status codes and their meanings:

1xx - Informational

100 - Continue: The server has received the request headers and the client should proceed to send the request body.
101 - Switching Protocols: The server is switching protocols according to the request made by the client.
2xx - Success

200 - OK: The request has succeeded.
201 - Created: The request has been fulfilled, resulting in the creation of a new resource.
204 - No Content: The request has succeeded but there is no representation to return.
3xx - Redirection

300 - Multiple Choices: The requested resource has multiple choices, each with a different location.
301 - Moved Permanently: The requested resource has been permanently moved to a new URL.
302 - Found: The requested resource has been temporarily moved to a new URL.
304 - Not Modified: The requested resource has not been modified since the last time it was accessed.
4xx - Client Errors

400 - Bad Request: The request could not be understood or was missing required parameters.
401 - Unauthorized: Authentication failed or user does not have permissions for requested operation.
403 - Forbidden: Server understood the request, but is refusing to fulfill it.
404 - Not Found: The requested resource could not be found.
5xx - Server Errors

500 - Internal Server Error: The server encountered an unexpected condition that prevented it from fulfilling the request.
502 - Bad Gateway: The server, while acting as a gateway or proxy, received an invalid response from the upstream server.
503 - Service Unavailable: The server is currently unable to handle the request due to a temporary overload or maintenance of the server.

These are just a few of the most common HTTP status codes. There are many more status codes that exist, and each one
provides specific information about the response from the server.

No comments:

Post a Comment