kin-openapi
kin-openapi copied to clipboard
Improve openapi3filter HTTP Response Code Accuracy
Hi,
Currently, the request validation always returns 400 Bad Request
as the HTTP response.
Would you be open to making the codes more configurable/accurate?
Especially in regards to the security authentication middleware, as 401
or 403
error codes would be a better fit for requests failing the validation by the AuthenticationFunc
.
I would also be open to creating a PR if required.
Thanks a lot!
Do you have an update or opinion about this?
Yes feel free to open a PR. Finer / more configurable error codes / responses is always welcomed.