mindee
Version:
Mindee Client Library for Node.js
20 lines (19 loc) • 544 B
TypeScript
import { StringDict } from "./stringDict";
/**
* Holds the information relating to an API HTTP request.
*
* @category API Response
*/
export declare class ApiRequest {
/** An object detailing the error. */
error: StringDict;
/** Target of the request. */
resources: string[];
/** Status of the request. Either "failure" or "success". */
status: "failure" | "success";
/** HTTP status code */
statusCode: number;
/** URL of the request. */
url: string;
constructor(serverResponse: StringDict);
}