27a0600dcd
* chore(healthchecks): refactor out of modules * feat(server): multi-region aware liveness and readiness checks * Add tests for redis & postgres healthchecks * do not close Redis client after checking it is healthy, we now use a shared client
15 lines
463 B
TypeScript
15 lines
463 B
TypeScript
import { BaseError } from '@/modules/shared/errors'
|
|
|
|
export class LivenessError extends BaseError {
|
|
static defaultMessage = 'The application is not yet alive. Please try again later.'
|
|
static code = 'LIVENESS_ERROR'
|
|
static statusCode = 500
|
|
}
|
|
|
|
export class ReadinessError extends BaseError {
|
|
static defaultMessage =
|
|
'The application is not ready to accept requests. Please try again later.'
|
|
static code = 'READINESS_ERROR'
|
|
static statusCode = 500
|
|
}
|