# signet - Class Signet::AuthorizationError (v0.22.0)

0.22.0 (latest) 0.21.0 0.20.0 Reference documentation and code samples for the signet class Signet::AuthorizationError.

An error indicating the remote server refused to authorize the client.

## Inherits

- StandardError

## Methods

### #initialize

    def initialize(message, options = {}) -> AuthorizationError

Creates a new authentication error.
**Parameters**

- **message** (String) --- A message describing the error.
- **options** (Hash) ---

  The configuration parameters for the request.
  - `:request` - A Faraday::Request object. Optional.
  - `:response` - A Faraday::Response object. Optional.
  - `:code` - An error code.
  - `:description` - Human-readable text intended to be used to assist in resolving the error condition.
  - `:uri` - A URI identifying a human-readable web page with additional information about the error, indended for the resource owner.
**Returns**

- ([AuthorizationError](https://docs.cloud.google.com/ruby/docs/reference/signet/latest/Signet-AuthorizationError)) --- a new instance of AuthorizationError

### #request

    def request() -> Array

The HTTP request that triggered this authentication error.
**Returns**

- (Array) --- A tuple of method, uri, headers, and body.

### #response

    def response() -> Array

The HTTP response that triggered this authentication error.
**Returns**

- (Array) --- A tuple of status, headers, and body.