© 2026 Hedgehog Software, LLC

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

❔ FluentValidation Custom Client Response?

I have a FluentValidation implementation for my .net core API, currently when a validation exception is thrown, I get a 400 error code, was wondering if I can change this to respond with a 422 error code instead. The .WithErrorCode attributes will not work as these are localised, I have read many solutions which are way to convoluted for the scope of this project. Is there a simple way of doing it?
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

❔ FluentValidation DTO
C#CC# / help
3y ago
❔ FluentValidation help
C#CC# / help
4y ago
❔ fluentvalidation custom validation inherit existing validation `MinimumLengthValidator`
C#CC# / help
4y ago
ProblemDetails and FluentValidation
C#CC# / help
3y ago