Sunday 9 March 2014

HTTP Errors


HTTP
HyperText Transfer Protocol is the foremost used protocol to communicate between servers and web browsers. Hypertext transfer protocol is the means by which data is transferred from its residing location on a server to an active browser.
HTTP 301
The 301 status code means the URI requested has Moved Permanently and has been assigned a new URI. Any future requests should use one of the returned URIs.
It is best practice to use 301 Redirects when multiple copies of the same document reside on different URIs. This will ensure that duplicate content is removed from the site and each and every unique page will only have one URL.
HTTP 302
The 302 status code means that the document requested is found however temporarily resides under a different URL. Since a permanent redirect has not been used, the client should continue to use the original requested URL for future requests
HTTP 400
The 400 status code means a ‘Bad Request’ stating that the server is not able to understand the document request due to a malformed syntax. The user is required to modify its request prior to repeating it.
HTTP 401
The 401 status code means ‘Unauthorized’. This server requests user authentication prior to fulfilling the document request.
HTTP 403
The 403 status code means ‘Forbidden’. The server understood the request, however is refusing to fulfill it. The webmaster may wish to alert the user why their request has been denied. If the organization does not wish to provide this reason then a 404 (Not Found) status code can be displayed instead.
HTTP 404
The response error message ’404′ represents a document ‘Not Found’. This means that the client was able to communicate with the server, however could not find the requested document. Alternatively, the server could be configured to not fulfill the request and not provide a reason why.
HTTP 410
Similar to a 404 Not Found error message, the 410 status code states that the requested document is ‘intentionally gone’, is no longer available and there is no forwarding address.
The 410 status code is usually used for limited display documents such as promotional information. It is up to the discretion of the web master to determine at what point to remove the 410 status message.
HTTP 500
The 500 status code error message states that there was an internal server error which has prevented the document from being fulfilled.
HTTP 501
The 501 status code message is displayed when the server does not recognize the document request method. The server is not capable of fulfilling this request and states the request was ‘Not Implemented’.



1 comment: