If a service returns a image content type, e.g.
[AddHeader(ContentType = "image/png")]
public Stream Get(ImageRequest request)
{
var image = HelperMethod.GetImage();
if (image == null)
throw HttpError.NotFound("Image was not found.");
}
It seems that the HttpError is ignored, and a status code of 405 is returned even though a 404 was requested.
You can see this with the imgur example: http://imgur.servicestack.net/resize/foo