© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
5 replies
Obel

❔ When using AbstractValidator, is there any way that i can override the http status code?

Im trying to return a 422 HTTP Status code when the error occurs, but by default it returns a 400 Bad Request, is there any way to override this. I attached a snippet of the validator code
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Is there a way to override the DefaultInterpolatedStringHandler?
C#CC# / help
3y ago
❔ Is there any way I can populate arrays with user input?
C#CC# / help
3y ago
❔ Is there a way to override a Variable in the .csproj by a project that is reference this project?
C#CC# / help
3y ago