HTTP response codes are three-digit numbers sent by the server to describe the result of a clientβs request. They are grouped into five main categories.
π’ 1xx β Informational
Temporary responses indicating that the request is being processed.
100 Continue β The server has received the request headers and the client can proceed with the request body.
101 Switching Protocols β The server is changing protocols, such as from HTTP to WebSocket.
β 2xx β Success
The request was successfully received, understood and processed.
200 OK β The request succeeded.
201 Created β The request succeeded and a new resource was created.
204 No Content β The request succeeded but there is no content to send in the response.
π 3xx β Redirection
Further action is needed to complete the request.
301 Moved Permanently β The resource has a new permanent URL.
302 Found β The resource is temporarily located at a different URL.
304 Not Modified β The resource has not changed since the last request.
β οΈ 4xx β Client Error
The request has invalid data or cannot be processed as sent.
400 Bad Request β The request is malformed.
401 Unauthorized β Authentication is required but missing or invalid.
403 Forbidden β The request is understood but access is denied.
404 Not Found β The resource could not be found.
π₯ 5xx β Server Error
The server failed to fulfill a valid request.
500 Internal Server Error β A generic error occurred on the server.
502 Bad Gateway β The server received an invalid response from an upstream server.
503 Service Unavailable β The server is temporarily unable to handle the request.