Check service availability
GET
/healthz
const url = 'https://preview-api.dshuniverse.com/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 https://preview-api.dshuniverse.com/healthzResponses
Section titled “Responses”The API Worker is responding.
Media typeapplication/json
object
ok
required
boolean
env
required
string
Example
{ "ok": true, "env": "local"}The per-client request limit has been reached.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example generated
{ "error": { "code": "example", "message": "example" }}Headers
Section titled “Headers”Retry-After
integer
Example
60