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.
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
or403
error codes would be a better fit for requests failing the validation by theAuthenticationFunc
.I would also be open to creating a PR if required.
Thanks a lot!