Para que no tengas que consultar la especificación cada vez, hemos reunido por clases los códigos de estado que más aparecen en la práctica. Al pulsar cada código de la lista de abajo accedes a una página de detalle con su significado, cuándo se produce, sus causas y sus soluciones.
Criterio rápido: 2xx es éxito, 3xx es un movimiento (redirección), 4xx es un problema de la solicitud (cliente) y 5xx es un problema del servidor. Si ves un 4xx, revisa primero la URL de la solicitud, las cabeceras y la autenticación; si ves un 5xx, revisa primero los registros del servidor y el estado del backend.
Los códigos de estado más usados de un vistazo
2xxÉxito (Success)
3xxRedirección (Redirection)
4xxError del cliente (Client Error)
400Bad Request FrecuenteThe server cannot process the request due to a client error such as malformed syntax.401Unauthorized FrecuenteAuthentication is required and has failed or not been provided (i.e. unauthenticated).403Forbidden FrecuenteThe server understood the request but refuses to authorize it. Re-authenticating will not help.404Not Found FrecuenteThe server cannot find the requested resource. The most well-known status code.405Method Not Allowed FrecuenteThe HTTP method is known but not supported for the target resource.409Conflict FrecuenteThe request conflicts with the current state of the resource.422Unprocessable Content FrecuenteThe request is well-formed but has semantic errors (e.g. validation failed).429Too Many Requests FrecuenteThe client has sent too many requests in a given time (rate limiting).
5xxError del servidor (Server Error)
500Internal Server Error FrecuenteA generic catch-all: the server hit an unexpected condition and could not complete the request.502Bad Gateway FrecuenteA gateway or proxy received an invalid response from an upstream server.503Service Unavailable FrecuenteThe server is temporarily unable to handle the request due to overload or maintenance.504Gateway Timeout FrecuenteA gateway or proxy did not get a timely response from an upstream server.