UNPKG

mindee

Version:

Mindee Client Library for Node.js

39 lines (38 loc) 963 B
import { StringDict } from "../common"; import { ErrorItem } from "./errorItem"; export interface ErrorDetails { /** * The HTTP status code returned by the server. */ status: number; /** * A human-readable explanation specific to the occurrence of the problem. */ detail: string; /** * A short, human-readable summary of the problem. */ title: string; /** * A machine-readable code specific to the occurrence of the problem. */ code: string; /** * A list of explicit error details. */ errors: ErrorItem[]; } /** * Error response detailing a problem. The format adheres to RFC 9457. */ export declare class ErrorResponse implements ErrorDetails { status: number; detail: string; title: string; code: string; errors: ErrorItem[]; /** * @param serverResponse JSON response from the server. */ constructor(serverResponse: StringDict); }