export class InsufficientResourceError extends HttpError {
constructor(resource: string, expected: number, available: number) {
super(
- `Insufficent ${resource}. Expected: ${expected}, only ${available} available`,
+ `Insufficent ${resource} available. Expected: ${expected}, only ${available} available`,
400,
ERROR_CODE.INSUFFICIENT_RESOURCE
);