APIs & Security

Designing HTTP APIs

StatusUse
200Successful read/update
201Created resource
204Successful response without a body
400Invalid request
401Authentication required/invalid
403Authenticated but not allowed
404Resource 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.