# 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 src/lib/types/types.ts:1760

#####
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 src/lib/types/types.ts:1431

### currentStep

currentStep: "error"

Overrides Omit.currentStep

- Defined in src/lib/types/types.ts:1764

### `Optional` errorDetailId

errorDetailId?: ErrorDetailId

- Defined in src/lib/types/types.ts:1767

### errorIds

errorIds: [ErrorId]

Overrides Omit.errorIds

- Defined in src/lib/types/types.ts:1766

### `Optional` lastResponse

lastResponse?: VerificationResponse

Inherited from Omit.lastResponse

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

### 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 src/lib/types/types.ts:1430

### `Optional` maxAge

maxAge?: number

Inherited from Omit.maxAge

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

### `Optional` minAge

minAge?: number

Inherited from Omit.minAge

- Defined in src/lib/types/types.ts:1443

### redirectUrl

redirectUrl: string

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

### segment

segment: Segment

Inherited from Omit.segment

- Defined in src/lib/types/types.ts:1428

### subSegment

subSegment: SubSegment

- Defined in src/lib/types/types.ts:1765

### `Optional` submissionUrl

submissionUrl?: string

Inherited from Omit.submissionUrl

- Defined in src/lib/types/types.ts:1438

### verificationId

verificationId: string

Overrides Omit.verificationId

- Defined in src/lib/types/types.ts:1763