Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tauntz
on July 13, 2022
|
parent
|
context
|
favorite
| on:
I've been abusing HTTP Status Codes in my APIs for...
The suggestion at the end looks inconsistent:
/api/v1/employees/100 -> StatusCode: 200
vs
/api/v11/employees/1 -> StatusCode: 404
Should these be both "$thing not found" errors and indicated in the same way? The first example is "employee not found" and the 2nd is "API version not found" :)
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: