Answer the question
In order to leave comments, you need to log in
How should errors be handled in ASP.NET MVC in WebAPI controllers?
Good day to all!
I need to somehow notify the web client that errors occurred during the execution of its request. Initially, the returned object had a field that indicated the success / failure of the request, now I want to refuse this option, since such a field is superfluous in the returned object.
How exactly do you notify the web client about controller errors?
If it's important, then requests to the controller are made from jquery.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question