Share

API Response Codes


Rest API Response Codes

When are you testing the rest APIs in using Postman below types of response code Give by a postman. All response codes having own series values and status descriptions as below mention.

1) 100 Series: These are temporary Responses

  1. 100 Continue
  2. 101 Switching Protocols
  3. 102 Processing

2) 200 Series: The client accepts the Request, being processed successfully at the server.

  1. 200 – OK
  2. 201 – Created
  3. 202 – Accepted
  4. 203 – Non-Authoritative Information
  5. 204 – No Content
  6. 205 – Reset Content
  7. 206 – Partial Content
  8. 207 – Multi-Status
  9. 208 – Already Reported
  10. 226 – IM Used

3) 300 Series: Most of the codes related to this series are for URL Redirection.

  1. 300 – Multiple Choices
  2. 301 – Moved Permanently
  3. 302 – Found
  4. 303 – Check Other
  5. 304 – Not Modified
  6. 305 – Use Proxy
  7. 306 – Switch Proxy
  8. 307 – Temporary Redirect
  9. 308 – Permanent Redirect

4) 400 Series: These are specific to client-side errors.

  1. 400 – Bad Request
  2. 401 – Unauthorised
  3. 402 – Payment Required
  4. 403 – Forbidden
  5. 404 – Not Found
  6. 405 – Method Not Allowed
  7. 406 – Not Acceptable
  8. 407 – Proxy Authentication Required
  9. 408 – Request Timeout
  10. 409 – Conflict
  11. 410 – Gone
  12. 411 – Length Required
  13. 412 – Precondition Failed
  14. 413 – Payload Too Large
  15. 414 – URI Too Long
  16. 415 – Unsupported Media Type
  17. 416 – Range Not Satisfiable
  18. 417 – Expectation Failed
  19. 418 – I’m a teapot
  20. 421 – Misdirected Request
  21. 422 – Unprocessable Entity
  22. 423 – Locked
  23. 424 – Failed Dependency
  24. 426 – Upgrade Required
  25. 428 – Precondition Required
  26. 429 – Too Many Requests
  27. 431 – Request Header Fields Too Large
  28. 451 – Unavailable For Legal Reasons

5) 500 Series: These are specific to the server-side error.

  1. 500 – Internal Server Error
  2. 501 – Not Implemented
  3. 502 – Bad Gateway
  4. 503 – Service Unavailable
  5. 504 – Gateway Timeout
  6. 505 – HTTP Version Not Supported
  7. 506 – Variant Also Negotiates
  8. 507 – Insufficient Storage
  9. 508 – Loop Detected
  10. 510 – Not Extended
  11. 511 –  Network Authentication Required
1