You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spinning out from this comment, we should discuss what the right set of variant cases are for error. Ideally, we'd be able to align with something in the HTTP spec, but I'm not sure what that is (noting that the well-defined status codes are already in a separate status-code field in responses).
As a general principle, I think it's a good idea to have separate cases only when code might want to actually branch and handle the different cases differently; to convey extra information for debugging purposes we can use the case payloads (e.g., with a string).
The HTTP champions have looked at the state of this issue in triage. We consider it closed by the current state of the spec (which has significantly expanded the set of error variants).
Activity
sw17ch commentedon Oct 8, 2026
The HTTP champions have looked at the state of this issue in triage. We consider it closed by the current state of the spec (which has significantly expanded the set of error variants).