Skip to content

Commit

Permalink
fix: change healthcheck returncode (#113)
Browse files Browse the repository at this point in the history
* fix: change health check http response code to 503

* docs: add section about healthcheck endpoint
  • Loading branch information
kimdre authored Aug 15, 2024
1 parent 54bd0d9 commit 751a32a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/doco-cd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func main() {
err = docker.VerifySocketConnection(c.DockerAPIVersion)
if err != nil {
log.Error(docker.ErrDockerSocketConnectionFailed.Error(), logger.ErrAttr(err))
JSONError(w, "unhealthy", err.Error(), "", http.StatusInternalServerError)
JSONError(w, "unhealthy", err.Error(), "", http.StatusServiceUnavailable)

return
}
Expand Down
2 changes: 1 addition & 1 deletion docs
Submodule docs updated from 9bf1a3 to 356006

0 comments on commit 751a32a

Please sign in to comment.