UNPKG

@opra/common

Version:
23 lines (22 loc) 614 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConflictError = void 0; const opra_http_error_js_1 = require("../opra-http-error.js"); /** * 409 Conflict * This response is sent when a request conflicts with the current state of the server. */ class ConflictError extends opra_http_error_js_1.OpraHttpError { constructor() { super(...arguments); this.status = 409; } init(issue) { super.init({ message: 'Conflict', code: 'CONFLICT', ...issue, }); } } exports.ConflictError = ConflictError;