Tuesday, 23 January 2024

Status Codes

 What are the status codes in REST?

    • 404 
      • Not Found
    • 409
      • Conflict
    • 204
      • No content
    • 200
      • Ok
    • 201
      • Created
    • 500
      • internal server error
    • 503
      • Service Unavailable
    • 502
      • Bad gateway
    • 301
      • Moved permanently
    • 400
      • Bad request
    • 403
      • Forbidden
    • 401
      • Unauthorized

What are the common meanings of these statuses?

  • 1xx
    • Informational
  • 2xx
    • Success
  • 3xx
    • Redirection
  • 4xx
    • Client errors
  • 5xx
    • Server errors

No comments:

Post a Comment

map online shopping status with REST API

  Example Sequence of API Calls Browse products : GET /products View product details : GET /products/12345 Add product to cart : POST /cart ...