Details object that contains data originating from a bad HTTP response.
Signature:
export interface CustomErrorData
Properties
Property | Type | Description |
---|---|---|
errorDetails | ErrorDetails[] | Optional additional details about the error. |
response | GenerateContentResponse | Response from a GenerateContentRequest |
status | number | HTTP status code of the error response. |
statusText | 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
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;