Add support to multiple HTTP response status codes #8
Labels
good first issue
Good for newcomers
hacktoberfest-accepted
Participants in Hacktoberfest are welcome to contribute
help wanted
Good for community contributors to help [up-for-grabs]
Context
Currently, the library supports only 400 BadRequest status code when an error occurs in a validation.
What should be done
Use fluentvalidation custom error codes to build at least three different error codes (beyond BadRequest):
You can follow this example from another repo that uses something very similar. The status code is checked in the ModelStateAsyncFilter and the validator must contain WithErrorCode extension method when error code is different from BadRequest.
The text was updated successfully, but these errors were encountered: