reduct-js
Version:
ReductStore Client SDK for Javascript/NodeJS/Typescript
22 lines (21 loc) • 508 B
TypeScript
/**
* Represents HTTP Error
*/
export declare class APIError {
/**
* HTTP status of error. If it is empty, it means communication problem
*/
status?: number;
/**
* Parsed message from the storage engine
*/
message?: string;
/**
* Original error from HTTP client with the full information
*/
original?: unknown;
/**
* Create an error from HTTP status and message
*/
constructor(message: string, status?: number, original?: unknown);
}