Of course I reproduced the issue, which was how I could have been able to commit a fix. If you previously had v5.0.3 downloaded you will need to clear your NuGet cache with:
$ nuget locals all -clear
Then delete the /packages folder before installing v5.0.3 packages again.
[Route("/throw404")]
public class Throw404 { }
public class MyServices : Service
{
public object Any(Hello request)
{
return new HelloResponse { Result = $$"Hello, {request.Name}!" };
}
public object Any(Throw404 request)
{
throw HttpError.NotFound("Not here");
}
}
Where if you go to /throw404 will render this page: