Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sindilevich
Copy link
Contributor

@sindilevich sindilevich commented Jun 2, 2021

Solves #176

The new configuration properties: statusOk and statusError will allow to globally configure the HTTP codes, used to respond with on a successful or an unsuccessful healthcheck respectively.
An unsuccessful healthcheck may override the global statusError property by setting the statusCode property on the Error object.
@rxmarbles rxmarbles merged commit 47608c6 into godaddy:custom-status Jun 4, 2021
rxmarbles added a commit that referenced this pull request Jun 4, 2021
* feat(status): custom status codes

* revert(binary) revert lockfile change

* Custom status (#191)

* Revert "feat(status): custom status codes"

This reverts commit 522df64.

* Added statusOk and statusError to configuration

The new configuration properties: statusOk and statusError will allow to globally configure the HTTP codes, used to respond with on a successful or an unsuccessful healthcheck respectively.
An unsuccessful healthcheck may override the global statusError property by setting the statusCode property on the Error object.

* Added typings for statusOk and statusError

Co-authored-by: rxmarbles <[email protected]>
Co-authored-by: Matanel Sindilevich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants