UNPKG

alepha

Version:

Easy-to-use modern TypeScript framework for building many kind of applications.

14 lines (12 loc) 252 B
import { HttpError } from "./HttpError.ts"; export class ConflictError extends HttpError { constructor(message = "Entity already exists", cause?: unknown) { super( { message, status: 409, }, cause, ); } }