News for hackers. Stuff that matters.
Re:I’ve banned query strings by mnahkies on Sunday May 10, 2026 @03:57AM (#48081921)
Completely agree on the axios part - one implication of that is you can't statically type the error response shapes (since exceptions can't be typed). Where as with fetch you can have a discriminated union based on the status code (eg: https://github.com/mnahkies/openapi-code-generator/blob/main...)

Although I do feel like I've seen too many instances of a 404 being used for an empty collection where it would make more sense to return `[]` and treat it as an expected (successful) state.

There are no comments on this comment yet.