News for hackers. Stuff that matters.
Re:I've been abusing HTTP Status Codes in my APIs for years by eadmund on Wednesday July 13, 2022 @10:27AM (#32083240)
> I must make fewer assumptions about the response, for example that they are well-formed or even match the requested content-type.

I think that you should always assume that an HTTP response is a well-formed HTTP response (otherwise you can't even trust that the 404 itself is correct); and you should never assume that the received MIME type is the same as the ones you indicated you accepted; you should always check the Content-type header.

There are no comments on this comment yet.