NAME
Catalyst::Plugin::OAuth2::ResourceServer::Error - a Bearer-challenge error
DESCRIPTION
Thrown by the engine/seam to signal a bearer-auth failure. Attributes: error (optional RFC 6750 code, one of invalid_token / insufficient_scope / invalid_request; absent for a plain challenge), error_description, scope (echoed on insufficient_scope), http_status (default 401). The seam turns one of these into a WWW-Authenticate: Bearer ... response.
METHODS
throw( error => $code, ... )
Construct and die a new instance.