Junior
What types of server responses do you know?
sobes.tech AI
Answer from AI
Server responses are represented by HTTP status codes, divided into 5 classes:
- 1xx (Informational): Request received, continuing process.
100 Continue101 Switching Protocols102 Processing103 Early Hints
- 2xx (Successful): Request successfully received, understood, and processed.
200 OK201 Created202 Accepted203 Non-Authoritative Information204 No Content205 Reset Content206 Partial Content
- 3xx (Redirection): Additional actions are required to complete the request.
300 Multiple Choices301 Moved Permanently302 Found(previously "Moved temporarily")303 See Other304 Not Modified307 Temporary Redirect308 Permanent Redirect
- 4xx (Client errors): The request contains invalid syntax or cannot be fulfilled.
400 Bad Request401 Unauthorized403 Forbidden404 Not Found405 Method Not Allowed408 Request Timeout409 Conflict415 Unsupported Media Type429 Too Many Requests
- 5xx (Server errors): The server failed to properly process a valid request.
500 Internal Server Error501 Not Implemented502 Bad Gateway503 Service Unavailable504 Gateway Timeout
Besides the status, the server response includes headers and a body, if applicable. Headers provide meta-information (content type, size, caching, etc.), and the body contains the data itself (HTML page, JSON, XML, etc.).