UnhealthyResponseCodeError

Error which gets thrown when the terminus client receives an unhealthy response code from the server.

  
class UnhealthyResponseCodeError extends HealthCheckError {

  // inherited from terminus/lib/HealthCheckError
  constructor(message: string, causes: any)
  causes: any
  isHealthCheckError: true
}

Constructor

Initializes the error


constructor(responseCode: string, cause: any)

Parameters

Option Type Description
responseCode string

The response code

cause any

The cause of the health check error