Skip to content

Instantly share code, notes, and snippets.

@fieldju
Created May 29, 2020 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fieldju/86787396851cbbe2f70e100e3cf07c67 to your computer and use it in GitHub Desktop.
Save fieldju/86787396851cbbe2f70e100e3cf07c67 to your computer and use it in GitHub Desktop.
import { HttpException, HttpStatus } from '@nestjs/common';
import HealthCheckResponse from '../domain/HealthCheckResponse';
export class ArcUnhealthyException extends HttpException {
constructor(private readonly healthCheckResponse: HealthCheckResponse) {
super(healthCheckResponse, HttpStatus.SERVICE_UNAVAILABLE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment