Closed joostflick closed 6 years ago
Receive data from a specified url
Does the same as GET but tells the server not to return a message-body in the response
Add something to an already existing resource
Place a resource somewhere. If there is something at that position replace it
Update a resource, either partial or as a whole
Speaks for itself, delete something
Request is succesful
The url you requested is permanently on another address
Server did not understand the request
Although the server knows the client the client does not have the rights to visit this url
You requested a resource that the server is unable to find, possibly because of a wrong url
Something went wrong on the server.
Good job 😄
Cheat sheet
Methods
GET
Receive data from a specified url
HEAD
Does the same as GET but tells the server not to return a message-body in the response
POST
Add something to an already existing resource
PUT
Place a resource somewhere. If there is something at that position replace it
PATCH
Update a resource, either partial or as a whole
DELETE
Speaks for itself, delete something
Status Messages
Some status messages I deemed useful:
2xx - Something went right
200 - OK
Request is succesful
3xx - What you're looking for is somewhere else
301 - Moved Permanently
The url you requested is permanently on another address
4xx - You did something wrong
400 - Bad Request
Server did not understand the request
403 - Forbidden
Although the server knows the client the client does not have the rights to visit this url
404 - Not Found
You requested a resource that the server is unable to find, possibly because of a wrong url
5xx - The server did something wrong
500 - Internal Server Error
Something went wrong on the server.