UNPKG

@inweb/client

Version:

JavaScript REST API client for the Open Cloud Server

24 lines (23 loc) 919 B
export declare function statusText(status: number): string; export declare function error400(text: string, _default?: string): string; /** * The `FetchError` object indicates an error when request to Open Cloud Server could not be performed. A * `FetchError` is typically (but not exclusively) thrown when a network error occurs, access denied, or * object not found. */ export declare class FetchError extends Error { /** * {@link https://developer.mozilla.org/docs/Web/HTTP/Status | HTTP status code} of the response. */ status: number; /** * Status message corresponding to the {@link status | status code}. */ statusText: string; /** * @property status - The {@link https://developer.mozilla.org/docs/Web/HTTP/Status | HTTP status code} * of the response. * @property message - Error message. */ constructor(status: number, message?: string); }