You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I add a [CompressResponse] attribute to my service, when an error is thrown, I can see that it is thrown via logging; however, the client receives a response with a 200 status code (and a serialized version of the error in it's ResponseStatus property). I am expecting to get a 404/403/etc in this situation.
[CompressResponse]
public class ThingService : Service
{
public object Get(GetThing request)
{
var thing = repo.Get(request.Id);
if (thing == null)
{
throw HttpError.NotFound($"Thing {request.Id} not found");
}
...
}
}
The text was updated successfully, but these errors were encountered:
When I add a
[CompressResponse]
attribute to my service, when an error is thrown, I can see that it is thrown via logging; however, the client receives a response with a 200 status code (and a serialized version of the error in it's ResponseStatus property). I am expecting to get a 404/403/etc in this situation.The text was updated successfully, but these errors were encountered: