Add default empty reason for 404 errors
Also output specified parameters in HTTP errors for debugging purposes