0% found this document useful (0 votes)
11 views2 pages

HTTP Status Codes Notes

HTTP status codes are standardized 3-digit responses from servers indicating the result of a client's request, categorized into five classes: informational (1xx), success (2xx), redirection (3xx), client errors (4xx), and server errors (5xx). Each category has specific codes that provide detailed information about the request's outcome, such as '200 OK' for success or '404 Not Found' for client errors. Understanding these codes is essential for developers and users to troubleshoot and manage web requests effectively.

Uploaded by

ss.swastik.ss
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

HTTP Status Codes Notes

HTTP status codes are standardized 3-digit responses from servers indicating the result of a client's request, categorized into five classes: informational (1xx), success (2xx), redirection (3xx), client errors (4xx), and server errors (5xx). Each category has specific codes that provide detailed information about the request's outcome, such as '200 OK' for success or '404 Not Found' for client errors. Understanding these codes is essential for developers and users to troubleshoot and manage web requests effectively.

Uploaded by

ss.swastik.ss
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

■ Understanding HTTP Status Response Codes

HTTP (Hypertext Transfer Protocol) status codes are standardized 3-digit responses sent by the
server to indicate the result of a client’s request. They help developers and users understand
whether a request was successful, redirected, had an error, or failed due to server issues.

■ 1xx – Informational Responses


These indicate that the request was received and the process is continuing.
• 100 Continue → The server has received request headers; the client should proceed with the
request body.
• 101 Switching Protocols → The server agrees to switch protocols (e.g., HTTP → WebSocket).
• 102 Processing → Request received and being processed, but no response yet.

■ 2xx – Success Responses


These codes mean the request was successfully received, understood, and processed.
• 200 OK → Standard success response (e.g., successful webpage load).
• 201 Created → Request was successful, and a new resource was created (common in POST
requests).
• 202 Accepted → Request accepted for processing, but not completed yet.
• 204 No Content → Request succeeded but no content returned (e.g., after deleting a record).

■ 3xx – Redirection Messages


These indicate the client must take additional action to complete the request.
• 301 Moved Permanently → Resource permanently moved to a new URL.
• 302 Found → Temporary redirect to another URL.
• 304 Not Modified → Cached version can be used; no need to re-download content.

■ 4xx – Client Error Responses


These indicate problems with the client’s request.
• 400 Bad Request → The request cannot be processed due to malformed syntax.
• 401 Unauthorized → Authentication required (e.g., invalid or missing credentials).
• 403 Forbidden → Client is authenticated but not authorized to access the resource.
• 404 Not Found → Requested resource could not be found.
• 429 Too Many Requests → Client has sent too many requests in a short time (rate limiting).

■ 5xx – Server Error Responses


These indicate the server failed to process a valid request.
• 500 Internal Server Error → Generic error when the server encounters an unexpected condition.
• 502 Bad Gateway → Server acting as a gateway received an invalid response from an upstream
server.
• 503 Service Unavailable → Server is temporarily down or overloaded.
• 504 Gateway Timeout → Server acting as a gateway did not receive a response in time.

■ Quick Summary Table


Series Meaning Example
1xx Informational 100 Continue
2xx Success 200 OK, 201 Created
3xx Redirection 301 Moved Permanently
4xx Client Error 404 Not Found
5xx Server Error 500 Internal Server Error

You might also like