@opra/common
Version:
Opra common package
17 lines (16 loc) • 455 B
JavaScript
import { OpraHttpError } from '../opra-http-error.js';
/**
* 422 Unprocessable Entity
* The request was well-formed but was unable to be followed due to semantic errors.
*/
export class UnprocessableEntityError extends OpraHttpError {
status = 422;
init(issue) {
super.init({
message: 'Unprocessable entity',
severity: 'error',
code: 'UNPROCESSABLE_ENTITY',
...issue,
});
}
}