Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
October 18, 2021 04:56 pm GMT

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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To