# 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: "ar" | "bg" | "bn-IN" | "cs" | "da" | "de" | "el" | "en-GB" | "en-US" | "es-ES" | "es" | "fi" | "fr-CA" | "fr" | "ga" | "hi-IN" | "hr" | "hu" | "id" | "is" | "it" | "iw" | "ja" | "ko" | "lo" | "lt" | "ms" | "nl" | "nl-BE" | "no" | "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;
subSegment: SubSegment;
submissionUrl?: string;
verificationId: string;
}

#### Hierarchy

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

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

#####
Index

### Properties

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

## Properties

### `Optional` country

country?: keyof Countries

Inherited from Omit.country

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

### currentStep

currentStep: "error"

Overrides Omit.currentStep

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

### `Optional` errorDetailId

errorDetailId?: ErrorDetailId

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

### errorIds

errorIds: [ErrorId]

Overrides Omit.errorIds

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

### `Optional` lastResponse

lastResponse?: VerificationResponse

Inherited from Omit.lastResponse

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

### locale

locale: "ar" | "bg" | "bn-IN" | "cs" | "da" | "de" | "el" | "en-GB" | "en-US" | "es-ES" | "es" | "fi" | "fr-CA" | "fr" | "ga" | "hi-IN" | "hr" | "hu" | "id" | "is" | "it" | "iw" | "ja" | "ko" | "lo" | "lt" | "ms" | "nl" | "nl-BE" | "no" | "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:1438

### `Optional` maxAge

maxAge?: number

Inherited from Omit.maxAge

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

### `Optional` minAge

minAge?: number

Inherited from Omit.minAge

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

### redirectUrl

redirectUrl: string

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

### segment

segment: Segment

Inherited from Omit.segment

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

### subSegment

subSegment: SubSegment

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

### `Optional` submissionUrl

submissionUrl?: string

Inherited from Omit.submissionUrl

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

### verificationId

verificationId: string

Overrides Omit.verificationId

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