Files
directus/api/src/exceptions/index.ts
Azri Kahar 74bb4a7c9a Add Unsupported Media Type Exception (#11096)
* add unsuported media type exception

* throw error when not multipart/form-data

* use unsupportedMediaType when checking import file

* add `UNSUPPORTED_MEDIA_TYPE` to Error Codes docs
2022-01-17 10:09:26 -05:00

20 lines
692 B
TypeScript

export * from './forbidden';
export * from './graphql-validation';
export * from './hit-rate-limit';
export * from './illegal-asset-transformation';
export * from './invalid-config';
export * from './invalid-credentials';
export * from './invalid-ip';
export * from './invalid-otp';
export * from './invalid-payload';
export * from './invalid-query';
export * from './invalid-token';
export * from './method-not-allowed';
export * from './range-not-satisfiable';
export * from './route-not-found';
export * from './service-unavailable';
export * from './unprocessable-entity';
export * from './unsupported-media-type';
export * from './user-suspended';
export * from './unexpected-response';