UNPKG

inceptum

Version:

hipages take on the foundational library for enterprise-grade apps written in NodeJS

17 lines 799 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnprocessableEntityError = void 0; const HttpError_1 = require("../HttpError"); /** * 422 Unprocessable Entity * The 422 (Unprocessable Entity) status code means the server understands the content type of the request entity * (hence a 415(Unsupported Media Type) status code is inappropriate), and the syntax of the request entity is correct * (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions. */ class UnprocessableEntityError extends HttpError_1.default { constructor(message, cause) { super(422, message, cause); } } exports.UnprocessableEntityError = UnprocessableEntityError; //# sourceMappingURL=UnprocessableEntityError.js.map