I am creating a RESTful API that allows a client to check if a specific service is running at the moment. EDIT: The request address will look something like this - /services/123/running
The possible return values are:
- OK (HTTP 200)- the service exists and is running
- Not Running (HTTP ???) - the service exists, but it is not running
- Not Found (HTTP 404) - the service doesn't exist
What HTTP status code should be used to inform the client that the service does exist, but it is not running at the moment?
EDIT: After more research I found a stackoverflow discussion that somewhat touches on the same topic – What is the appropriate HTTP status code response for a general unsuccessful request (not an error)?