Pass request to auth_class. Custom unauthorized Exception.
Pass headers to error response.
Added basic auth.