Files
Iain Sproat f93d9093a0 fix(errors): all error should define an appropriate status code (#3112)
* fix(errors): all error should define a status code (default is 500)
- rename NoInviteFoundError to InviteNotFoundError to match xNotFoundError pattern

* remove unused errors
2024-09-25 13:08:13 +02:00

16 lines
520 B
TypeScript

import { BaseError } from '@/modules/shared/errors'
export class AccessRequestProcessingError extends BaseError {
static defaultMessage =
'An unexpected error occurred while processing an access request'
static code = 'ACCESS_REQUEST_PROCESSING_ERROR'
static statusCode = 400
}
export class AccessRequestCreationError extends BaseError {
static defaultMessage =
'An unexpected error occurred while creating an access request'
static code = 'ACCESS_REQUEST_CREATION_ERROR'
static statusCode = 400
}