UNPKG

n8n

Version:

n8n Workflow Automation Tool

19 lines (18 loc) 530 B
import { type HttpErrorDescriptor } from '../errors/http-error-classifier'; export type InternalRestErrorBody = { code: number; message: string; hint?: string; stacktrace?: string; meta?: Record<string, unknown>; }; export declare function serializePublicApiError(descriptor: HttpErrorDescriptor): { status: number; body: { message: string; }; }; export declare function serializeInternalRestError(descriptor: HttpErrorDescriptor): { status: number; body: InternalRestErrorBody; };