Skip to content

Response body for health checks #4181

Description

@steve-chavez

Problem

Currently the health checks don't have a response body. It's sometimes surprising to do:

curl localhost:3001/ready

And have it return nothing

Solution

There's an RFC draft (already expired) which defines an application/health+json media type:

{
  "status": "pass",
  "version": "1"
}

We could adopt that. Having version there is also useful because:

  • Proxies can rewrite the Server header we use for exposing our version, thus our version is lost there.
  • Parsing the whole OpenAPI for the version is cumbersome.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    adminRelated to the admin serverideaNeeds discussion to become an enhancement, not ready for implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions