Check liveness
GET/healthz
const url = 'http://127.0.0.1:8080/healthz';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://127.0.0.1:8080/healthzReturns 200 while the server is running, even before the Pack is loaded.
Use /readyz to check that it can geocode. The body is empty.
Responses
Section titled “Responses”The server is running.
Headers
Section titled “Headers”ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.
Method not allowed. The route accepts GET only.
Error response, an RFC 9457 problem document.
object
Human-readable explanation. Absent on 500 errors.
Stable error code. Branch on this.
Rejected parameters. Present only when the error is about parameters.
A rejected parameter.
object
Parameter name.
Why it was rejected.
ID the request is logged under. Include it in bug reports.
Name of the HTTP status. Do not branch on it.
URI identifying the problem type. Currently always about:blank.
Example
{ "detail": "q must not be empty", "error_code": "invalid_query", "invalid_params": [ { "name": "limit", "reason": "must be at most 50" } ], "request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W", "status": 400, "title": "Bad Request", "type": "about:blank"}Headers
Section titled “Headers”Example
GETMethods the route accepts.
ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.

