C#C
C#2y ago
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);


But are the better ways to do it?
Was this page helpful?