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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How would I use Huma to define endpoint returns a set of status code and some description of why it return that code.
For example, in openapi.json it would look something like this:
I want to have more control of what errors are return for each endpoint. For example, not all endpoints would return 400 or 404.
Huma seems to fallback to a default error schema. But this schema also doesn't define what status code are returned.
Beta Was this translation helpful? Give feedback.
All reactions