DEV Community

Bryan
Bryan

Posted on • Originally published at devlogbook.com

HTTP Response Codes to use for API

  • 200 Everything is ok.
  • 400 Valid data was given but the request has failed.
  • 401 Unauthorized, No valid user API Key was given.
  • 403 Forbidden, Client app does not have access.
  • 404 The request resource could not be found.
  • 422 The payload has missing required parameters or invalid data was given.
  • 429 Too many attempts.
  • 500 Request failed due to an internal error.
  • 503 Offline for maintenance.

Top comments (0)