HttpStatusCodes
Was this helpful?
Was this helpful?
File:
The HttpStatusCodes
enum provides a comprehensive and type-safe list of HTTP status codes. This enum categorizes HTTP status codes into different response classes, such as Informational, Success, Redirection, Client Errors, and Server Errors.
Comprehensive List: Includes a broad range of HTTP status codes.
Type-Safety: Ensures the use of standardized HTTP status codes.
1XX: Informational Responses
2XX: Successful Responses
3XX: Redirection Messages
4XX: Client Errors
5XX: Server Errors
Given the large number of enum members, here's a subset for quick reference:
OK
200
Standard response for successful HTTP requests.
NOT_FOUND
404
Resource not found.
INTERNAL_SERVER_ERROR
500
Generic error, no specific message.
Note: This table is a subset; for a complete list refer to the source code.
For a complete understanding of each status code, refer to the following: