Replies: 1 comment
-
Yeah, looks good. Do you mean the existing errors thrown/converted by the packages can format them as per the define spec or are you also expecting some userland abstractions to make it easy to define these sort of errors? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There is a proposed standard for error responses: https://www.rfc-editor.org/rfc/rfc9457.html
This is supported in other established frameworks such as Spring Boot.
It uses the
application/problem+json
content header for error responses. Maybe this could be built into the framework?Beta Was this translation helpful? Give feedback.
All reactions