Sunday 22 May 2011

Dealing With Internet: 4xx Client Error



Most of us are familiar with code 4xx errors when surfing around the net no matter forum, online store or online community website. A 4xx error, basically intended for cases in which the client seems to have erred. These codes are the most common error codes encountered when online.

400 Bad Request

Cannot be understood by server due to bad syntax.




 

401 Unauthorized

The request requires user authorization but the authorization codes sent were invalid or the user was not recognized in the system.



 

402 Payment Required

Reserved for future use.


 

403 Forbidden

The server understood the request, but refuses to fulfill it. Authenticating will make no difference.



 

404 Not Found

The requested resource could not be found or does not exist but may be available again in the future.




 

405 Method Not Allowed

A request was made of a resource using a request method not supported by that resource.




 

406 Not Acceptable

The requested resource is only capable of generating content not acceptable according to the Accept headers sent in the request.



 

407 Proxy Authentication Required

Similar to 401, but the client must first authenticate with a proxy.

 

408 Request Timeout

The client did not produce a request within the time that the server was prepared to wait.



 

409 Conflict

The request could not be completed due to a conflict with the current state of the resource.



 

410 Gone

Indicates that the resource requested is no longer available and will not be available again.







 

411 Length Required:

The request did not specify the length of its content, which is required by the requested resource.

 

412 Precondition Failed:

The server evaluated a pre-condition in the header fields as false.



 

413 Request Entity Too Large

The server has a limit as to the size of a request.



 

414 Request-URI Too Long

The URI provided was too long for the server to process.



 

415 Unsupported Media Type

The request entity has a media type which the server or resource does not support.

 

416 Requested Range Not Satisfiable

The client has asked for a portion of the file, but the server cannot supply that portion.

 

418 I'm a teapot

Click here to see the error message

 

Another 4xx error range from 422 to 499 are some rare RFC, Nginx and Microsoft extension codes that doesn't need to be explained here.  418 error was part of a good April Fool joke created by IETF based on Hyper Text Coffee Pot Control Protocol idea. There are more errors  like 500 Internal Server Error, 502 Bad Gateway and 504 Gateway Timeout as a part of 5xx error that will be concluded on the next article along with 1xx, 2xx and 3xx errors.

1 comment:

  1. Will you accepting guest articles in your website? Pls let me know.

    ReplyDelete