DEV Community


Posted on • Originally published at


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)


Thank you.

Thanks for visiting DEV, we’ve worked really hard to cultivate this great community and would love to have you join us. If you’d like to create an account, you can sign up here.