📚Dev Reference

HTTP Status Codes Cheat Sheet

Quick reference for 2xx, 4xx, and 5xx response codes.

Explanation

Understanding status codes helps developers diagnose issues and build predictable APIs.

Examples

200 OK
Output
Success
404 Not Found
Output
Client Error
500 Server Error
Output
Server Error

Code Examples

Common Codes
200 OK          - Request succeeded
201 Created     - Resource created
400 Bad Request - Client error
401 Unauthorized- Missing auth
403 Forbidden   - Permission denied
404 Not Found   - Missing resource
500 Internal    - Server crashed

💡 Tips

  • 2xx codes mean "It worked"
  • 4xx codes mean "You (the client) messed up"
  • 5xx codes mean "We (the server) messed up"

⚠️ Common Pitfalls

  • Avoid returning 200 OK for requests that actually failed