mirror of
https://github.com/directus/directus.git
synced 2026-02-06 06:45:31 -05:00
Add unprocessable entity exception
This commit is contained in:
7
api/src/exceptions/unprocessable-entity.ts
Normal file
7
api/src/exceptions/unprocessable-entity.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { BaseException } from './base';
|
||||
|
||||
export class UnprocessableEntityException extends BaseException {
|
||||
constructor(message: string) {
|
||||
super(message, 422, 'UNPROCESSABLE_ENTITY');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user