Re:I've been abusing HTTP Status Codes in my APIs for years
by dncornholio on Wednesday July 13, 2022 @09:27AM
(#32082378)
Author thinks only a 200 response can contain a body or something
[ Parent
| on HN ]
Re:I've been abusing HTTP Status Codes in my APIs for years
by that_james on Wednesday July 13, 2022 @11:06AM
(#32083736)
That's not the takeway I was after, I was pretty certain I had clearly described my intention of debating the usage of HTTP status codes as domain error messages.
Not really sure why you think I'm of the opinion only 2xx codes can have responses, perhaps I could have been clearer.
Re:I've been abusing HTTP Status Codes in my APIs for years
by dncornholio on Thursday July 14, 2022 @04:26AM
(#32093473)
It's because of these things:
1. If I were to call /api/v11/employees/1 I would get the exact same error.
2. Your examples on the bottom of the post shows a response code and body for 2xx but not a body for the 404.