HTTP
Cheatsheet for the Hypertext Transfer Protocol.
Request Methods
Common and often used HTTP request methods you should know. Read more here.
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. |
Status Codes
Common and often used HTTP status codes you should know. Read more here.
2xx
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 |
204 No Content | The request succeeded but no content was returned. Might be used after a successful |
3xx
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. |
4xx
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 | Equivalent to "unauthenticated". The client must authenticate itself. For example via JWT. |
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. |
5xx
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. |
Further Resources
Read more here:
Last updated