Overview
The health check endpoint provides a simple way to verify that the Routa service is running and responsive. This is useful for Docker/container health checks, load balancer health monitoring, and uptime monitoring.Get Health Status
Endpoint
Returns the current service status and timestamp
Response
Service status - always returns
"ok" when healthyCurrent server timestamp in ISO 8601 format
Response Example
Status Codes
| Status Code | Description |
|---|---|
200 | Service is healthy and responsive |
500 | Service encountered an error (unhealthy) |
Use Cases
Docker Health Check
Add to yourDockerfile:
Docker Compose
Kubernetes Liveness Probe
Uptime Monitoring
Use the health endpoint with monitoring services like:- UptimeRobot
- Pingdom
- StatusCake
- Custom monitoring scripts
Cache Control
The health endpoint includesCache-Control: no-store headers to ensure fresh status checks are always performed.
Implementation
The health check is implemented in both backends:- Next.js:
src/app/api/health/route.ts - Rust:
crates/routa-server/src/routes/health.rs