License: CC BY 4.0. Free to use in personal and commercial projects; please credit Online JSON Formatter with a link to this page.

What the Status Code Groups Mean

  • 1xx Informational: the request was received and is still being processed.
  • 2xx Success: the request worked.
  • 3xx Redirection: the client must go to another URL.
  • 4xx Client Error: something is wrong with the request.
  • 5xx Server Error: the server failed to handle a valid request.

Informational

CodeNameMeaning
100ContinueThe server received the request headers; the client can send the body.
101Switching ProtocolsThe server is switching protocols, for example to WebSocket.
102ProcessingThe server is working on the request (WebDAV).
103Early HintsLets the browser start loading resources while the server prepares the response.

Success

CodeNameMeaning
200OKThe request succeeded.
201CreatedThe request succeeded and a new resource was created.
202AcceptedThe request was accepted but processing is not finished yet.
203Non-Authoritative InformationThe response was changed by a proxy.
204No ContentThe request succeeded and there is no body to return.
205Reset ContentThe client should reset the document view, for example clear a form.
206Partial ContentOnly part of the resource is sent, because of a Range header.
207Multi-StatusSeveral status codes for several operations (WebDAV).
208Already ReportedMembers of a binding were already listed earlier (WebDAV).
226IM UsedThe response is the result of instance manipulations applied to the resource.

Redirection

CodeNameMeaning
300Multiple ChoicesThere are several possible responses to choose from.
301Moved PermanentlyThe resource has a new permanent URL.
302FoundThe resource is temporarily at a different URL.
303See OtherGet the result from another URL with a GET request.
304Not ModifiedThe cached version is still valid; nothing new to send.
307Temporary RedirectTemporarily at another URL; repeat the request with the same method.
308Permanent RedirectPermanently at another URL; repeat the request with the same method.

Client Error

CodeNameMeaning
400Bad RequestThe server cannot process the request, for example because of invalid JSON.
401UnauthorizedAuthentication is required or the credentials are wrong.
402Payment RequiredReserved for future use; some APIs use it for billing problems.
403ForbiddenThe client is known but not allowed to access the resource.
404Not FoundThe resource does not exist.
405Method Not AllowedThe HTTP method, such as POST or DELETE, is not supported for this URL.
406Not AcceptableNo response matches the Accept headers sent by the client.
407Proxy Authentication RequiredThe client must authenticate with the proxy first.
408Request TimeoutThe server waited too long for the request.
409ConflictThe request conflicts with the current state, for example a duplicate entry.
410GoneThe resource was removed permanently.
411Length RequiredThe request needs a Content-Length header.
412Precondition FailedA condition in the request headers was not met.
413Content Too LargeThe request body is larger than the server allows.
414URI Too LongThe URL is longer than the server allows.
415Unsupported Media TypeThe body format is not supported, for example a missing Content-Type: application/json.
416Range Not SatisfiableThe requested range is outside the size of the resource.
417Expectation FailedThe Expect header could not be met.
418I'm a teapotAn April Fools joke code from RFC 2324; the server refuses to brew coffee.
421Misdirected RequestThe request went to a server that cannot answer it.
422Unprocessable ContentThe request is well-formed but has validation errors.
423LockedThe resource is locked (WebDAV).
424Failed DependencyThe request failed because an earlier request failed (WebDAV).
425Too EarlyThe server will not process a request that might be replayed.
426Upgrade RequiredThe client must switch to a different protocol.
428Precondition RequiredThe server requires the request to be conditional.
429Too Many RequestsRate limit reached; slow down and try again later.
431Request Header Fields Too LargeThe request headers are too large.
451Unavailable For Legal ReasonsThe resource cannot be shown for legal reasons.

Server Error

CodeNameMeaning
500Internal Server ErrorSomething went wrong on the server.
501Not ImplementedThe server does not support the requested feature.
502Bad GatewayA gateway or proxy got an invalid response from the server behind it.
503Service UnavailableThe server is overloaded or down for maintenance.
504Gateway TimeoutA gateway or proxy did not get a response in time.
505HTTP Version Not SupportedThe HTTP version of the request is not supported.
506Variant Also NegotiatesA server configuration error in content negotiation.
507Insufficient StorageThe server cannot store what is needed to finish the request (WebDAV).
508Loop DetectedThe server found an infinite loop while processing (WebDAV).
510Not ExtendedFurther extensions to the request are required.
511Network Authentication RequiredThe client must sign in to the network, for example on public Wi-Fi.

Frequently Asked Questions

What are HTTP status codes?

Three-digit numbers a server sends with every response to say how the request went: 2xx success, 3xx redirect, 4xx client error and 5xx server error.

Can I use this list in my project?

Yes. Copy or download the JSON and use it freely, for example to show friendly error messages in an app.

What is the difference between 401 and 403?

401 Unauthorized means you are not logged in or your credentials are wrong. 403 Forbidden means you are logged in but not allowed to access the resource.

Related Tools