UNPKG

@opra/common

Version:
19 lines (18 loc) 444 B
import { OpraHttpError } from '../opra-http-error.js'; /** * 409 Conflict * This response is sent when a request conflicts with the current state of the server. */ export class ConflictError extends OpraHttpError { constructor() { super(...arguments); this.status = 409; } init(issue) { super.init({ message: 'Conflict', code: 'CONFLICT', ...issue, }); } }