👨🏫 Let's discuss about the HTTP Status codes which means a three-digit numbers that are returned by a server in response to a client's request made to the server. These codes provide information about the status of the request.
🌟 1xx Informational:
These status codes indicate that the request has been received and the process is continuing.
Example: 100 Continue – The server has received the request headers and the client should proceed to send the request body.
🌟 2xx Success:
These codes indicate that the request was received, understood, and accepted successfully.
Example: 200 OK – The request was successful.
🌟 3xx Redirection:
These codes indicate that further action needs to be taken to complete the request.
Example: 301 Moved Permanently – The requested page has been permanently moved to a new location.
🌟 4xx Client Error:
These codes indicate that the client has made a mistake.
Example: 404 Not Found – The requested resource could not be found on the server.
🌟 5xx Server Error:
These codes indicate that the server has encountered an error while fulfilling the request.
Example: 500 Internal Server Error – The server encountered an unexpected condition that prevented it from fulfilling the request.
Summary:1xx codes are about the request being received.
2xx codes mean the request was successful.
3xx codes suggest redirection or further action.
4xx codes indicate a mistake on the client's part.
5xx codes indicate an error on the server's part.
Comments
Post a Comment