feat: Added methods for organization
This commit is contained in:
17
common/exceptions/error_codes.ts
Normal file
17
common/exceptions/error_codes.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user