NancyFx how to remove a tumor from errors

I like the custom NancyFX error page. Unfortunately, the clumsy client prefers not to see the green monster, except for an error. Is there a way to simply remove an image from an almost perfect nancyfx error message page?

+4
source share
1 answer

You implement IStatusCodeHandler and process the status codes you want (for example, 404 and 500), returning an answer for them. If you need to display the view, take a dependency on IViewRenderer and exit =)

+3
source

Source: https://habr.com/ru/post/1480681/


All Articles