Small fixes

Use an event for the 405 HTTP Code
Change the output of the default exception handler