HTTP status codes | Client Error Responses Last Updated : 27 Jun, 2023 Comments Improve Suggest changes Like Article Like Report The browser and the site server have a conversation in the form of HTTP status codes. The server gives responses to the browser’s request in the form of a three-digit code known as HTTP status codes. The categorization of HTTP status codes is done in five sections which are listed below. Informational responses (100–199)Successful responses (200–299)Redirects (300–399)Client errors (400–499)Server errors (500–599) Client Error Responses: 400 Bad Request: This response code occurs when the server could not understand the request because an invalid syntax is used. Status:400 Bad Request 401 Unauthorized: This response code occurs when the server refuses to respond to the request because the request lacks client authentication to get the resources. Status:401 Unauthorized 402 Payment Required: The response code 402 is reserved for future use. The aim of creating this response code is for the digital payment system. Status:402 Payment Required 403 Forbidden: This response code occurs when the client wants to access the content but it does not have the right to access the content as it is unauthorized. Status:403 Forbidden 404 Not Found: This response code occurs when the server cannot find the resources requested by the client. This code can also be sent by the server instead of error 403 to hide the resources from the unauthorized client. Error 404 is one of the most famous response codes on the web.Status:404 Not Found 405 Method Not Allowed: This response code occurs when the server knows the method of the request but currently it has been disabled by the server. Status:405 Method Not Allowed 406 Not Acceptable: This response code occurs when the server does not find the content mentioned in the client request. Status:406 Not Acceptable 407 Proxy Authentication Required: This response code occurs when it is necessary for the client to authenticate itself with the proxy. Status:407 Proxy Authentication Required 408 Request Timeout: This response code occurs when the webserver did not receive the required response within the time that it was prepared to wait. Status:408 Request Timeout 409 Conflict: This response code occurs when the server could not complete the request due to conflict in the target resource. The client can resubmit the request by resolving the conflict. Status:409 Conflict 410 Gone: This response code occurs when the requested resource is permanently deleted from the server and is no longer available. Status:410 Gone 411 Length Required: This response code occurs when the server rejects the request as the request did not have a defined "Content-Length". Status:411 Length Required 412 Precondition Failed: This response code occurs when the server evaluates the preconditions given in the request header as false. Status:412 Precondition Failed 413 Request Entity Too Large: This response code occurs when the server refuses to process the request because the request entity is larger than the server's ability to process the data. Status:413 Request Entity Too Large 414 Request-URI Too Long: This response code occurs when the client's requested URI is longer than the ability of the server to interpret the URI. Status:414 Request-URI Too Long 415 Unsupported Media Type: This response code occurs when the server rejects the requested resource because the media format of the requested resource is not supported by the server.Status:415 Unsupported Media Type 416 Requested Range Not Satisfiable: Response code occurs when the request cannot be completed because of the range specified in the Range Header. The range can also be outside the target URI's data. Status:416 Requested Range Not Satisfiable 417 Expectation Failed: This response code occurs when the server can't meet the expectation indicated by the Expect request-header field. Status:416 Requested Range Not Satisfiable Supported Browsers: The browsers compatible with the HTTP status code Client Error Responses are listed below: Google Chrome Internet Explorer Firefox Safari Opera Comment More infoAdvertise with us Next Article HTTP status codes | Client Error Responses A ayushkaher99 Follow Improve Article Tags : Web Technologies HTML HTTP- response-status-codes Similar Reads HTTP status codes | Server Error Responses HTTP status codes is a conversation between your browser and the site server. The server gives responses to the browser's request in the form of a three-digit code known as HTTP status codes. Categories of HTTP status codes are. Informational responses (100â199) Successful responses (200â299) Redire 3 min read HTTP status codes | Redirection Responses HTTP status codes are a conversation between your browser and the site server. The server gives responses to the browser's request in the form of a three-digit code known as HTTP status codes. The HTTP status codes are categorized into five sections which are listed below. Informational responses (1 2 min read HTTP status codes | Informational Responses The HTTP status codes are used to indicate that any specific HTTP request has successfully completed or not. The HTTP status codes are categorized into five sections those are listed below: Informational responses (100â199) Successful responses (200â299) Redirects (300â399) Client errors (400â499) S 2 min read State the core components of an HTTP response ? Have you ever thought about how the front-end of an application communicates with the backend to get data or perform certain operations? It is done through API Requests. API stands for Application Programming Interface. The communication between our client and the API is achieved using HTTP Request 4 min read 10 Most Common HTTP Status Codes When you visit a website or make a request online, your browser communicates with a server using HTTP (Hypertext Transfer Protocol). The server responds with a three-digit HTTP status code that indicates whether the request was successful or if something went wrong. These codes are grouped into cate 6 min read Node.js http.ServerResponse.statusCode Property The httpServerResponse.statusCode is an inbuilt application programming interface of class ServerResponse within the HTTP module which is used to this property controls the status code that will be sent to the client when the headers get flushed. Syntax: const response.statusCodeParameters: This pro 2 min read How to send HTTP response code in PHP? HTTP Response code: There are three approaches to accomplish the above requirement, depending on the version. For PHP versions 4.0: In order to send the HTTP response code, we need to assemble the response code. To achieve this, use header() function. The header() function contains a special use-cas 2 min read Node.js http.ServerResponse.statusMessage Property The httpServerResponse.statusMessage is an inbuilt application programming interface of class ServerResponse within http module which is used to control the status message that will be sent to the client when the headers get flushed. Syntax: response.statusMessage Parameters: This method does not ac 2 min read HTTP 201 status code What is HTTP ? HTTP stands for Hyper Text Transfer Protocol. Using this protocols, the clients communicate with server and vice versa. This concept is the core of internet, since it was created in 1990. HTTP is basic yet powerful file transfer protocol. Features of HTTP: HTTP is connectionless: This 3 min read Which HTTP response status codes result in then() and which in catch() ? Axios is a popular JavaScript library for making HTTP requests. It uses promises to handle the response from the server, and provides a convenient then() and catch() syntax for working with the data or handling errors. Have you ever wondered which HTTP response status codes will cause axios to call 4 min read Like