# App Engine Admin V1 API - Class Google::Cloud::AppEngine::V1::ErrorHandler (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.6 Reference documentation and code samples for the App Engine Admin V1 API class Google::Cloud::AppEngine::V1::ErrorHandler.

Custom static error page to be served when an error occurs.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #error_code

    def error_code() -> ::Google::Cloud::AppEngine::V1::ErrorHandler::ErrorCode

**Returns**

- ([::Google::Cloud::AppEngine::V1::ErrorHandler::ErrorCode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Cloud-AppEngine-V1-ErrorHandler-ErrorCode)) --- Error condition this handler applies to.

### #error_code=

    def error_code=(value) -> ::Google::Cloud::AppEngine::V1::ErrorHandler::ErrorCode

**Parameter**

- **value** ([::Google::Cloud::AppEngine::V1::ErrorHandler::ErrorCode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Cloud-AppEngine-V1-ErrorHandler-ErrorCode)) --- Error condition this handler applies to.
**Returns**

- ([::Google::Cloud::AppEngine::V1::ErrorHandler::ErrorCode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Cloud-AppEngine-V1-ErrorHandler-ErrorCode)) --- Error condition this handler applies to.

### #mime_type

    def mime_type() -> ::String

**Returns**

- (::String) --- MIME type of file. Defaults to `text/html`.

### #mime_type=

    def mime_type=(value) -> ::String

**Parameter**

- **value** (::String) --- MIME type of file. Defaults to `text/html`.
**Returns**

- (::String) --- MIME type of file. Defaults to `text/html`.

### #static_file

    def static_file() -> ::String

**Returns**

- (::String) --- Static file content to be served for this error.

### #static_file=

    def static_file=(value) -> ::String

**Parameter**

- **value** (::String) --- Static file content to be served for this error.
**Returns**

- (::String) --- Static file content to be served for this error.