Skip to content
Middle4 views

For HTTP responses, there are groups of response codes. Could you give two examples from each group, except the 1xx group, and explain what they mean?

Practice

AI answer

Leaving aside informational 1xx responses, the main groups are:

  • 2xx — successful execution: 200 OK — the request was completed; 201 Created — a resource was created.
  • 3xx — redirection or use of a cached resource: 301 Moved Permanently — permanent redirect; 304 Not Modified — the resource has not changed, so the cache can be used.
  • 4xx — client-side error: 400 Bad Request — malformed request; 404 Not Found — the resource was not found.
  • 5xx — server-side error: 500 Internal Server Error — internal error; 503 Service Unavailable — the service is temporarily unavailable.