APIs & Security
Designing HTTP APIs
| Status | Use |
|---|---|
| 200 | Successful read/update |
| 201 | Created resource |
| 204 | Successful response without a body |
| 400 | Invalid request |
| 401 | Authentication required/invalid |
| 403 | Authenticated but not allowed |
| 404 | Resource not found |
Consistent error shapes make clients easier to build and logs easier to understand.
Lesson complete?Use the next lesson to continue the learning path.