UNPKG

@ingestkorea/client-sens

Version:

INGESTKOREA SDK Naver Cloud Platform SENS Client for Node.js.

58 lines (57 loc) 1.67 kB
export declare const SENS_ERROR_CODE_SPEC: { readonly 400: "Bad Request"; readonly 401: "Unauthorized"; readonly 403: "Forbidden"; readonly 404: "Not Found"; readonly 429: "Too Many Requests"; readonly 500: "Internal Server Error"; }; export declare const NCLOUD_ERROR_CODE_SPEC: { readonly "100": { readonly status: 400; readonly type: "Bad Request"; }; readonly "200": { readonly status: 401; readonly type: "Unauthorized"; }; readonly "210": { readonly status: 403; readonly type: "Forbidden"; }; readonly "300": { readonly status: 404; readonly type: "Not Found"; }; readonly "400": { readonly status: 429; readonly type: "Too Many Requests"; }; readonly "410": { readonly status: 429; readonly type: "Too Many Requests"; }; readonly "420": { readonly status: 429; readonly type: "Too Many Requests"; }; readonly "900": { readonly status: 500; readonly type: "Internal Server Error"; }; }; export type SesnResponseErrorType = (typeof SENS_ERROR_CODE_SPEC)[keyof typeof SENS_ERROR_CODE_SPEC]; export interface SensErrorResponse { status: number; errorMessage?: string; errors?: object; } export interface NCloudErrorResponse { error: { errorCode: string; message?: string; details?: string; }; } export declare const SENS_ERROR_BODY_SPEC: [[keyof SensErrorResponse][number], string, boolean][]; export declare const NCLOUD_ERROR_BODY_SPEC: [[keyof NCloudErrorResponse["error"]][number], string, boolean][];