Sobes.tech
Junior — Middle

What response status codes do you know and can you give examples?

sobes.tech AI

Answer from AI

The main HTTP response status codes are divided into groups:

  • 1xx — informational (e.g., 100 Continue)
  • 2xx — successful (e.g., 200 OK, 201 Created)
  • 3xx — redirection (e.g., 301 Moved Permanently, 302 Found)
  • 4xx — client errors (e.g., 400 Bad Request, 401 Unauthorized, 404 Not Found)
  • 5xx — server errors (e.g., 500 Internal Server Error, 503 Service Unavailable)

Examples:

  • 200 OK — the request was successfully processed, and the server returned data.
  • 404 Not Found — the requested resource was not found.
  • 500 Internal Server Error — an unexpected error occurred on the server.

Knowing these codes is important for API testing and understanding web application behavior.

What response status codes do you know and can you… - sobes.tech