© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
2y ago
•
3 replies
Sander
What is the best way to return errors in api controllers?
What is the best way to return errors in asp
.net core api controllers
?
i currently use
return Problem("Some error message", statusCode: 400);
return Problem("Some error message", statusCode: 400);
But are the better ways to do it
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
The best way to handle Errors in Clean Arch
C
C# / help
3y ago
✅ What is the best way to learn c/c#?
C
C# / help
3y ago
✅ What is the best way to store basic C#?
C
C# / help
3y ago