You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bryan Kendall edited this page Jan 5, 2015
·
3 revisions
I realized we merged this in but there is very limited documentation on how to put a status message in the API /status route, so here’s the quick rundown:
The data is stored in a hash in redis under the key process.env.REDIS_NAMESPACE + status-message. For this example, REDIS_NAMESPACE is going to be api-prod:.
The /status route will return an empty object if there is no has set in redis. Otherwise, it will return a data object reflecting exactly what is in redis. There is one special key, statusCode that will change the response’s status code away from 200 if you set it.
To remove the status message from the /status route, simply delete (DEL) the entire key.