Hi! I have defined a Fallback route service as reported in the documentation:
[FallbackRoute("/{Path*}")]
public class Fallback
{
public string Path { get; set; }
}
public class FallbackResponse
{
}
public class FallbackServices : Service
{
public object Any(Fallback request)
{
return new HttpError(HttpStatusCode.NotFound, "Not Found");
}
}
Everything works fine but when it get triggered it responses with a “{}”.
Is there a way to get only a 404 status code without any response text?
Thank you