Junior — Middle
Can you name the main HTTP status codes and explain their meanings?
sobes.tech AI
Answer from AI
Main HTTP status codes and their meanings:
-
1xx (Informational): Request received, processing continues.
- 100 Continue — The client can continue sending the request.
-
2xx (Success): The request was successfully processed.
- 200 OK — The request was successful.
- 201 Created — The resource was successfully created.
- 204 No Content — The request was successful, but no response body.
-
3xx (Redirection): Additional action by the client is required.
- 301 Moved Permanently — The resource has been permanently moved.
- 302 Found — Temporary redirect.
- 304 Not Modified — The resource has not changed, use cache.
-
4xx (Client errors): Error in the request.
- 400 Bad Request — Invalid request.
- 401 Unauthorized — Authentication required.
- 403 Forbidden — Access is denied.
- 404 Not Found — Resource not found.
-
5xx (Server errors): Error on the server side.
- 500 Internal Server Error — Internal server error.
- 502 Bad Gateway — Bad response from another server.
- 503 Service Unavailable — Service is unavailable.
These codes help the client understand the result of the request and take appropriate actions.