18 lines
343 B
TypeScript
18 lines
343 B
TypeScript
import { HttpStatus } from "@nestjs/common";
|
|
|
|
interface AppError {
|
|
errorCode: string,
|
|
message: string,
|
|
status: HttpStatus
|
|
}
|
|
|
|
type ErrorsType = Record<string, AppError>
|
|
|
|
export const ORGANIZATION_ERRORS: ErrorsType = {
|
|
NOT_FOUND: {
|
|
errorCode: 'ORG_001',
|
|
message: 'Organization not found',
|
|
status: HttpStatus.NOT_FOUND
|
|
}
|
|
}
|