api: Fix status endpoint.

Closes #302.