HTTP 4xx Codes - HTTP 4xx Error Codes

HTTP 4xx Codes or HTTP 4xx Error Codes represent the messages of errors occurred on the client's end. These error codes are applicable to any request method.

There are 23 main types of HTTP 4xx Codes, these 23 types are listed below.

400 Bad Request

The 400 Bad Request means that the request cannot be fulfilled due to bad syntax.

401 Unauthorized

The 401 Unauthorized means that the server cannot fulfil the request and it needs the user authorization.

402 Payment Required

The 402 Payment Required means that the request cannot be fulfilled and it is reserved for the future. The 402 is used when the payment is required, to fulfil the client's request.

403 Forbidden

The 403 Forbidden means that the server has denied to fulfil the client request.

404 Not Found

The 404 Not Found means that the requested page is not found and client might request for it again, in the future.

405 Method Not Allowed

The 405 Method Not Allowed means that the request was made using the wrong method and the server requires the client to use the right method.

406 Not Acceptable

The 406 Not Acceptable means that the server cannot fulfil the client's request with the specified accept header.

407 Proxy Authentication Required

The 407 Proxy Authentication Required means that client must authenticate itself with the proxy.

408 Request Timeout

The 408 Request Timeout means that the server timed out waiting for the request and client couldn't produce request on time.

409 Conflict

The 409 Conflict means that the server cannot fulfil the request because of a conflict with current state of target resource.

410 Gone

The 410 Gone means that the requested page is no longer available.

411 Length Required

The 411 Length Required means that server has rejected a request since content length is not defined.

412 Precondition Failed

The 412 Precondition Failed means that the target resource cannot be accessed since the condition defined in header is not fulfilled.

413 Request Entity Too Large

The 413 Request Entity Too Large means that the server cannot accept the request because the request entity is too large.

414 Request-URI Too Long

The 414 Request-URI Too Long means that the server is not accepting the request because the URL requested by the client is longer than it should be.

415 Unsupported Media Type

The 415 Unsupported Media Type means that the server has rejected the request because the media type is not supported.

416 Requested Range Not Satisfiable

The 416 Requested Range Not Satisfiable means that the server cannot serve the requested range.

417 Expectation Failed

The 417 Expectation Failed means that the expectation given in the request Expect header cannot be fulfilled.

422 Unprocessable Entity

The 422 Unprocessable Entity means that the server was unable to process the contained instructions of the request.

426 Upgrade Required

The 426 Upgrade Required means that the server is not fulfilling the request because it requires an upgrade to a different protocol by the client.

428 Precondition Required

The 428 Precondition Required means that the server requires precondition header to fulfil the request.

429 Too Many Requests

The 429 Too Many Requests means that the client has sent too many request in the given amount of time.

451 Unavailable For Legal Reasons

The 451 Unavailable For Legal Reasons means that the resource is not available due to legal reason.