Skip to content

Commit

Permalink
Clarify loss of defaults when adding custom mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
norio-io authored and wilkinsona committed Jun 8, 2020
1 parent 4a0e821 commit 9f009e4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,9 @@ For example, the following property maps `FATAL` to 503 (service unavailable):
management.endpoint.health.status.http-mapping.fatal=503
----

WARNING: A custom status mapping replaces whole of the default status mappings.
That means the above example has only one mapping to `FATAL` and any other statuses will return the http status 200 as `UNKNOWN` health status.

TIP: If you need more control, you can define your own `HttpCodeStatusMapper` bean.

The following table shows the default status mappings for the built-in statuses:
Expand Down

0 comments on commit 9f009e4

Please sign in to comment.