Back to Firebase Js Sdk

CustomErrorData interface

docs-devsite/ai.customerrordata.md

12.12.11.8 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

CustomErrorData interface

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

<b>Signature:</b>

typescript
export interface CustomErrorData 

Properties

PropertyTypeDescription
errorDetailsErrorDetails<!-- -->[]Optional additional details about the error.
responseGenerateContentResponseResponse from a GenerateContentRequest
statusnumberHTTP status code of the error response.
statusTextstringHTTP status text of the error response.

CustomErrorData.errorDetails

Optional additional details about the error.

<b>Signature:</b>

typescript
errorDetails?: ErrorDetails[];

CustomErrorData.response

Response from a GenerateContentRequest

<b>Signature:</b>

typescript
response?: GenerateContentResponse;

CustomErrorData.status

HTTP status code of the error response.

<b>Signature:</b>

typescript
status?: number;

CustomErrorData.statusText

HTTP status text of the error response.

<b>Signature:</b>

typescript
statusText?: string;