# Interface ErrorResponse

#### Description

Response from REST API. Unrecoverable error. No further requests are expected. Recommend starting over.

interface ErrorResponse {
country?: keyof Countries;
currentStep: "error";
errorDetailId?: ErrorDetailId;
errorIds: [ErrorId];
lastResponse?: VerificationResponse;
locale:
| "es"
| "id"
| "is"
| "no"
| "ar"
| "bg"
| "bn-IN"
| "cs"
| "da"
| "de"
| "el"
| "en-GB"
| "en-US"
| "es-ES"
| "fi"
| "fr-CA"
| "fr"
| "ga"
| "hi-IN"
| "hr"
| "hu"
| "it"
| "iw"
| "ja"
| "ko"
| "lo"
| "lt"
| "ms"
| "nl"
| "nl-BE"
| "pl"
| "pt-BR"
| "pt"
| "ro"
| "ru"
| "sk"
| "sl"
| "sr"
| "sv"
| "sw"
| "uk"
| "ur"
| "vi"
| "th"
| "tr"
| "zh-HK"
| "zh"
| "zu";
maxAge?: number;
minAge?: number;
redirectUrl: string;
segment: Segment;
submissionUrl?: string;
subSegment: SubSegment;
verificationId: string;
}

#### Hierarchy

- Omit<VerificationResponse, "subSegment">
- Omit<WithLocaleAndCountryAndSegment, "subSegment">
  - ErrorResponse

- Defined in jslib/src/lib/types/types.ts:1771

##### Index

### Properties

country?
currentStep
errorDetailId?
errorIds
lastResponse?
locale
maxAge?
minAge?
redirectUrl
segment
submissionUrl?
subSegment
verificationId

## Properties

### `Optional` country

country?: keyof Countries

Inherited from Omit.country

- Defined in jslib/src/lib/types/types.ts:1442

### currentStep

currentStep: "error"

Overrides Omit.currentStep

- Defined in jslib/src/lib/types/types.ts:1776

### `Optional` errorDetailId

errorDetailId?: ErrorDetailId

- Defined in jslib/src/lib/types/types.ts:1779

### errorIds

errorIds: [ErrorId]

Overrides Omit.errorIds

- Defined in jslib/src/lib/types/types.ts:1778

### `Optional` lastResponse

lastResponse?: VerificationResponse

Inherited from Omit.lastResponse

- Defined in jslib/src/lib/types/types.ts:1455

### locale

locale:
| "es"
| "id"
| "is"
| "no"
| "ar"
| "bg"
| "bn-IN"
| "cs"
| "da"
| "de"
| "el"
| "en-GB"
| "en-US"
| "es-ES"
| "fi"
| "fr-CA"
| "fr"
| "ga"
| "hi-IN"
| "hr"
| "hu"
| "it"
| "iw"
| "ja"
| "ko"
| "lo"
| "lt"
| "ms"
| "nl"
| "nl-BE"
| "pl"
| "pt-BR"
| "pt"
| "ro"
| "ru"
| "sk"
| "sl"
| "sr"
| "sv"
| "sw"
| "uk"
| "ur"
| "vi"
| "th"
| "tr"
| "zh-HK"
| "zh"
| "zu"

Inherited from Omit.locale

- Defined in jslib/src/lib/types/types.ts:1441

### `Optional` maxAge

maxAge?: number

Inherited from Omit.maxAge

- Defined in jslib/src/lib/types/types.ts:1453

### `Optional` minAge

minAge?: number

Inherited from Omit.minAge

- Defined in jslib/src/lib/types/types.ts:1454

### redirectUrl

redirectUrl: string

- Defined in jslib/src/lib/types/types.ts:1780

### segment

segment: Segment

Inherited from Omit.segment

- Defined in jslib/src/lib/types/types.ts:1439

### `Optional` submissionUrl

submissionUrl?: string

Inherited from Omit.submissionUrl

- Defined in jslib/src/lib/types/types.ts:1449

### subSegment

subSegment: SubSegment

- Defined in jslib/src/lib/types/types.ts:1777

### verificationId

verificationId: string

Overrides Omit.verificationId

- Defined in jslib/src/lib/types/types.ts:1775