Comment on page
HTTP
Cheatsheet for the Hypertext Transfer Protocol.
Method | Description |
---|---|
GET | Send named resource from the server to the client. |
HEAD | Send just the HTTP headers from the response for the named resource. |
POST | Send client data into a server gateway application. |
PUT | Store data from client into a named server resource. |
DELETE | Delete the named resource from a server. |
These status codes indicate that the request was successfully received, understood, and accepted.
Code | Description |
---|---|
200 OK | Standard response for successful HTTP requests. |
201 Created | The request succeeded and a new resource was created. Often used after a successful POST request. |
204 No Content | The request succeeded but no content was returned. Might be used after a successful DELETE request. |
These status codes indicate a redirection and that further action needs to be taken by the user agent in order to fulfill the request.
Code | Description |
---|---|
301 Moved Permanently | The URL of the requested resource has been changed permanently and the new URL is provided in the response. |
304 Not Modified | The response was cached and has not been modified. |
These status codes indicate that there occured an error on the client side.
Code | Description |
---|---|
400 Bad Request | The server cannot process the received request from the user. For example if a form value is invalid. |
401 Unauthorized | |
403 Forbidden | The client does not have access rights to the content. |
404 Not Found | The requested resource does not exist on the server side. |
These status codes indicate that there occured an error on the server side.
Code | Description |
---|---|
500 Internal Server Error | The server encountered an unexpected condition and cannot fulfill the request. |
Read more here:
Last modified 6mo ago