@opra/common
Version:
Opra common package
16 lines (15 loc) • 380 B
JavaScript
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 {
status = 409;
init(issue) {
super.init({
message: 'Conflict',
code: 'CONFLICT',
...issue,
});
}
}