# google-cloud-errors - Class Google::Cloud::UnavailableError (v1.6.0)

1.6.0 (latest) 1.5.0 1.4.0 1.3.1 1.2.0 Reference documentation and code samples for the google-cloud-errors class Google::Cloud::UnavailableError.

Unavailable indicates the service is currently unavailable.
This is a most likely a transient condition and may be corrected
by retrying with a backoff.


<br />

See litmus test above for deciding between FailedPrecondition,
Aborted, and Unavailable.

## Inherits

- [Google::Cloud::Error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-errors/latest/Google-Cloud-Error)

## Methods

### #code

    def code() -> Integer

gRPC error code for UNAVAILABLE
**Returns**

- (Integer)