2025SELab2-project-Dwengo/backend/src/exceptions/conflict-exception.ts
2025-03-30 12:54:22 +00:00

12 lines
275 B
TypeScript

import { ExceptionWithHttpState } from './exception-with-http-state.js';
/**
* Exception for HTTP 409 Conflict
*/
export class ConflictException extends ExceptionWithHttpState {
public status = 409;
constructor(error: string) {
super(409, error);
}
}