Common HTTP Response Codes:
Code | Description |
---|---|
200 OK | This response code is returned if the document or file in question is found and served correctly. |
304 Not Modified | This response code is returned if a browser has indicated that it has a local, cached copy, and the server’s copy has not changed from this cached copy. |
401 Unauthorized | This response code is generated if the request in question requires authorization to access the requested document. |
403 Forbidden | This response code is returned if the requested document does not have proper permissions to be accessed by the requestor. |
404 Not Found | This response code is sent back if the file that is attempting to be accessed could not be found (e.g., if it doesn’t exist). |
500 Internal Server Error | This code will be returned if the server that is being contacted has a problem. |
503 Service Unavailable | This response code is generated if the server is too overwhelmed to handle the request. |
HTTP Request Methods
Method | Description |
---|---|
GET | The most common means of sending a request; simply requests a specific resource from the server |
HEAD | Similar to a GET request, except that the response will come back without the response body; useful for retrieving headers |
POST | Allows a request to send along user-submitted data (ideal for web-based forms) |
PUT | Transfers a version of the file request in question |
DELETE | Sends a request to remove the specified document |
TRACE | Sends back a copy of the request in order to monitor its progress |
OPTIONS | Returns a full list of available methods; useful for checking on what methods a server supports |
CONNECT | A proxy-based request used for SSL tunneling |