An Interest In:
Web News this Week
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
October 18, 2021 04:56 pm GMT
Original Link: https://dev.to/gvt3ch/http-verbs-http-codes-request-params-3kc7
HTTP - Verbs, HTTP codes & Request Params
Verbs
- GET - Reading infos
- POST - Create infos
- PUT - Update Infos
- PATCH - Update PARTIAL info (example: avatar from user)
- DELETE - Delete infos
HTTP - Status Code
- 1xx - Informative: processing..
- 2xx - Confirmation:
- 200: Request success
- 201: Created - AFTER REQUEST POST
- 3xx - Redirect:
- 301: Moved Permanently
- 302: Moved
- 4xx - Client Error
- 400: Bad Request
- 401: Unauthorized
- 403: Forbidden
- 404: Not Found
- 422: Unprocessable Entity
- 5xx - Server Error
- 500: Internal Server Error
- 502: Bad Gateway
Request Params
- Header Params: Token, authorization, cors
- Query Params: key,value,separator (page=28&)
- Route Params: /products/{id}
- Body Params: { name: 'john doe', last_name: 'stewie' }
Original Link: https://dev.to/gvt3ch/http-verbs-http-codes-request-params-3kc7
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To