Class: HttpCodeStatusMapper

health.HttpCodeStatusMapper()

Strategy interface used to map Status instances to HTTP status codes.

Constructor

new HttpCodeStatusMapper()

Methods

(abstract) getStatusCode(status) → {number}

Returns the HTTP status code for the given status.

Parameters:
Name Type Description
status Status

The status.

Returns:

The HTTP status code.

Type
number

(static) getDefault() → {HttpCodeStatusMapper}

Returns the default HTTP code status mapper.

Returns:

The default HTTP code status mapper.

Type
HttpCodeStatusMapper