HTTP
HTTP methods and status code
Contents
HTTP methods
GET: Retrieve data from a server only
- HTTP GET won’t have payload or request body, just send URL only, it simply retrieves data
POST: Add data (create a new object) on the server
PUT: Update an existing object or resource in a server
DELETE: Delete data from a server
Remove is NOT an HTTP verb
HTTP status code cheatsheet
- 1xx status codes: Informational requests
- 2xx status codes: Successful requests
- 3xx status codes: Redirects
- 4xx status codes: Client errors
- 5xx status codes: Server errors
|
|
Ref: https://stackoverflow.com/questions/2342579/http-status-code-for-update-and-delete
detailed cheatsheet: https://www.exai.com/blog/http-status-codes-cheat-sheet