Sobes.tech
Junior

What response codes does the server return?

sobes.tech AI

Answer from AI

1xx — Informational. The server has received the request and is continuing to process it. Examples: 100 (Continue), 101 (Switching Protocols).

2xx — Success. The request was successfully received, understood, and processed. Examples: 200 (OK), 201 (Created), 204 (No Content).

3xx — Redirection. Additional actions are needed to complete the request. Examples: 301 (Moved Permanently), 302 (Found), 304 (Not Modified).

4xx — Client errors. The request contains incorrect syntax or cannot be fulfilled. Examples: 400 (Bad Request), 401 (Unauthorized), 403 (Forbidden), 404 (Not Found).

5xx — Server errors. The server failed to fulfill a valid request. Examples: 500 (Internal Server Error), 502 (Bad Gateway), 503 (Service Unavailable).