DEV Community

Bryan
Bryan

Posted on • Originally published at devlogbook.com

1 1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay