Closed ryanfaricy closed 4 years ago
Oops - I removed the following from my configuration definition and now it works as expected. Perhaps might be nice to persist the status code with this configuration, but in the meantime, maybe this will help someone else out one day. :) Thanks again!
UseApiProblemDetailsException = env.IsDevelopment() || Debugger.IsAttached,
Hello,
First of all, thanks for AutoWrapper, it's a joy and breeze to use.
In my new .NET Core Web API app, I want to throw an exception if an object wasn't found in the database, for example. But in my controller, when I do:
I receive:
My result has a status code of 500 when I was expecting it to be a 404. Here is the configuration definition in Startup.cs:
What am I missing or what did I do wrong? Thanks much in advance!