On exception, return 500 response instead of 401.