# 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:1776

##### 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:1447

### currentStep

currentStep: "error"

Overrides Omit.currentStep

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

### `Optional` errorDetailId

errorDetailId?: ErrorDetailId

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

### errorIds

errorIds: [ErrorId]

Overrides Omit.errorIds

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

### `Optional` lastResponse

lastResponse?: VerificationResponse

Inherited from Omit.lastResponse

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

### 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:1446

### `Optional` maxAge

maxAge?: number

Inherited from Omit.maxAge

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

### `Optional` minAge

minAge?: number

Inherited from Omit.minAge

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

### redirectUrl

redirectUrl: string

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

### segment

segment: Segment

Inherited from Omit.segment

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

### `Optional` submissionUrl

submissionUrl?: string

Inherited from Omit.submissionUrl

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

### subSegment

subSegment: SubSegment

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

### verificationId

verificationId: string

Overrides Omit.verificationId

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