Files
speckle-server/packages/server/healthchecks/errors.ts
T
Iain Sproat 27a0600dcd feat(server): multi-region aware liveness and readiness checks (#3468)
* 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
2024-12-11 09:29:53 +00:00

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
}