featureDisabledResponse
sabrobotix-suite / lib/features / featureDisabledResponse
Function: featureDisabledResponse()
featureDisabledResponse(
flag):Response
Defined in: lib/features.ts:62
What a route answers while its feature is off.
503 and not 404: the endpoint exists and will work again, which is what a caller needs to know in order to retry rather than to go looking for a renamed route. The flag is named in the body so that whoever finds this in a log knows which variable to set, without reading this file.
Parameters
flag
string
Returns
Response