For some weird reason the status code is set to 500 when I throw a throw new ApiException($"User with id '{userId}' does not exist"); exception. They default value should be 4xx
{ "isError": true, "type": "https://httpstatuses.com/500", "title": "Internal Server Error", "status": 500, "detail": "User with id 'asasa' does not exist", "instance": "/api/Users/GetUser", "extensions": {} }
For some weird reason the status code is set to 500 when I throw a throw new ApiException($"User with id '{userId}' does not exist"); exception. They default value should be 4xx
{ "isError": true, "type": "https://httpstatuses.com/500", "title": "Internal Server Error", "status": 500, "detail": "User with id 'asasa' does not exist", "instance": "/api/Users/GetUser", "extensions": {} }