Details object that contains data originating from a bad HTTP response.

**Signature:**

    export interface CustomErrorData 

## Properties

| Property | Type | Description |
|---|---|---|
| [errorDetails](https://firebase.google.com/docs/reference/js/ai.customerrordata#customerrordataerrordetails) | [ErrorDetails](https://firebase.google.com/docs/reference/js/ai.errordetails#errordetails_interface)\[\] | Optional additional details about the error. |
| [response](https://firebase.google.com/docs/reference/js/ai.customerrordata#customerrordataresponse) | [GenerateContentResponse](https://firebase.google.com/docs/reference/js/ai.generatecontentresponse#generatecontentresponse_interface) | Response from a [GenerateContentRequest](https://firebase.google.com/docs/reference/js/ai.generatecontentrequest#generatecontentrequest_interface) |
| [status](https://firebase.google.com/docs/reference/js/ai.customerrordata#customerrordatastatus) | number | HTTP status code of the error response. |
| [statusText](https://firebase.google.com/docs/reference/js/ai.customerrordata#customerrordatastatustext) | string | HTTP status text of the error response. |

## CustomErrorData.errorDetails

Optional additional details about the error.

**Signature:**

    errorDetails?: ErrorDetails[];

## CustomErrorData.response

Response from a [GenerateContentRequest](https://firebase.google.com/docs/reference/js/ai.generatecontentrequest#generatecontentrequest_interface)

**Signature:**

    response?: GenerateContentResponse;

## CustomErrorData.status

HTTP status code of the error response.

**Signature:**

    status?: number;

## CustomErrorData.statusText

HTTP status text of the error response.

**Signature:**

    statusText?: string;