HttpStatusCode

 HTTP (Hypertext Transfer Protocol) response status codes are three-digit numbers returned by a server in response to a client's request made to the server. These codes provide information about the status of the requested resource or about the server's processing of the request. Here are some common HTTP response status codes, grouped by their general categories:


Informational responses (100-199):


100 Continue: The client should continue with its request. This interim response is used to inform the client that the initial part of the request has been received and has not been rejected.


101 Switching Protocols: The server is indicating a change in protocol. The client should switch to a different protocol if it wishes to continue the request.


102 Processing: The server is still processing the request. This code is typically used in WebDAV (Web Distributed Authoring and Versioning) scenarios.


103 Early Hints: This status code is primarily intended to be used with the "Link" header to allow the user agent to start preloading resources while the server is still preparing a response.


Successful responses (200-299):


200 OK: The request was successful, and the server returns the requested data in the response body.


201 Created: The request was successful, and a new resource was created on the server. The URI for the newly created resource is provided in the response header.


202 Accepted: The request has been accepted but has not been fully processed. It may be used to acknowledge asynchronous processing.


204 No Content: The server successfully processed the request but there is no additional content to send in the response. Useful for indicating success without returning a response body.


206 Partial Content: The server is delivering only a part of the resource due to a range header sent by the client.


Redirection messages (300-399):


300 Multiple Choices: The requested resource has multiple representations, and the user or client can choose among them.


301 Moved Permanently: The requested resource has been permanently moved to a different location. The client should update its bookmark or link.


302 Found (or Moved Temporarily): Similar to 301, but indicates a temporary redirection.


304 Not Modified: The client's cached copy is up-to-date, and there is no need to transfer the requested resource again.


Client error responses (400-499):


400 Bad Request: The server cannot process the request due to a client error, such as malformed syntax or invalid request message framing.


401 Unauthorized: The request requires user authentication, and the client needs to provide valid credentials.


403 Forbidden: The server understood the request but refuses to authorize it.


404 Not Found: The requested resource could not be found on the server.


Server error responses (500-599):


500 Internal Server Error: A generic error message indicating a problem at the server.


501 Not Implemented: The server does not support the functionality required to fulfill the request.


503 Service Unavailable: The server is temporarily unable to handle the request, usually due to maintenance or overloading.


504 Gateway Timeout: The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server or some other auxiliary server it needed to access in order to complete the request.



List of Types:


Informational responses (100-199):


100 Continue

101 Switching Protocols

102 Processing

103 Early Hints

Successful responses (200-299):


200 OK

201 Created

202 Accepted

203 Non-Authoritative Information

204 No Content

205 Reset Content

206 Partial Content

207 Multi-Status

208 Already Reported

226 IM Used

Redirection messages (300-399):


300 Multiple Choices

301 Moved Permanently

302 Found

303 See Other

304 Not Modified

305 Use Proxy (Deprecated)

307 Temporary Redirect

308 Permanent Redirect

Client error responses (400-499):


400 Bad Request

401 Unauthorized

402 Payment Required

403 Forbidden

404 Not Found

405 Method Not Allowed

406 Not Acceptable

407 Proxy Authentication Required

408 Request Timeout

409 Conflict

410 Gone

411 Length Required

412 Precondition Failed

413 Payload Too Large

414 URI Too Long

415 Unsupported Media Type

416 Range Not Satisfiable

417 Expectation Failed

418 I'm a teapot

421 Misdirected Request

422 Unprocessable Entity

423 Locked

424 Failed Dependency

425 Too Early

426 Upgrade Required

428 Precondition Required

429 Too Many Requests

431 Request Header Fields Too Large

451 Unavailable For Legal Reasons

Server error responses (500-599):


500 Internal Server Error

501 Not Implemented

502 Bad Gateway

503 Service Unavailable

504 Gateway Timeout

505 HTTP Version Not Supported

506 Variant Also Negotiates

507 Insufficient Storage

508 Loop Detected

510 Not Extended

511 Network Authentication Required

Comments