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
Problem
Currently the health checks don't have a response body. It's sometimes surprising to do:
And have it return nothing
Solution
There's an RFC draft (already expired) which defines an
application/health+jsonmedia type:{ "status": "pass", "version": "1" }We could adopt that. Having
versionthere is also useful because:Serverheader we use for exposing our version, thus our version is lost there.References