Junior — Middle
Can you name other main HTTP status codes besides 200, 400, and 500?
sobes.tech AI
Answer from AI
Besides codes 200 (success), 400 (client error), and 500 (server error), there are other important HTTP status codes:
-
1xx (Informational):
- 100 Continue — client can continue with the request
- 101 Switching Protocols — protocol switching
-
2xx (Successful):
- 201 Created — resource successfully created
- 204 No Content — request successful, no response body
-
3xx (Redirection):
- 301 Moved Permanently — resource moved permanently
- 302 Found — temporary redirect
- 304 Not Modified — resource not changed (cache)
-
4xx (Client errors):
- 401 Unauthorized — authentication required
- 403 Forbidden — access denied
- 404 Not Found — resource not found
-
5xx (Server errors):
- 502 Bad Gateway — bad gateway
- 503 Service Unavailable — service unavailable
These codes help understand the result of an HTTP request and handle responses correctly.