Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
thr0wawayf00
on July 13, 2022
|
parent
|
context
|
favorite
| on:
I've been abusing HTTP Status Codes in my APIs for...
I've always interpreted 422 to fit this case: a well-formed request that cannot be processed due to the content in the payload.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422
zinekeller
on July 13, 2022
[–]
Unfortunately, literal reading of 422 implies that the sent content has error(s) and not the header. It's close, but I still feel that for GET requests it's wrong.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422