@n8n-plus/n8n-plus
Version:
n8n Workflow Automation Tool (plus edition)
19 lines (18 loc) • 530 B
TypeScript
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;
};