n8n/packages/cli/src/errors/non-json-body.error.ts
Iván Ovejero 3ca99194c6
refactor(core): Migrate all errors in cli package to new hierarchy (#13478)
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
2025-02-27 09:30:55 +02:00

8 lines
207 B
TypeScript

import { UserError } from 'n8n-workflow';
export class NonJsonBodyError extends UserError {
constructor() {
super('Body must be valid JSON. Please make sure `content-type` is `application/json`.');
}
}