toHttpResponse
Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.
toHttpResponse(
error,options?):HttpResponse
Defined in: packages/pipeline-feature-flags/src/http.ts:22
The HTTP answer for a FeatureDisabledError: 403 Forbidden naming the flag, or
with hideFeature a plain 404 Not Found that does not reveal the feature exists.
Parameters
Section titled “Parameters”options?
Section titled “options?”hideFeature?
Section titled “hideFeature?”boolean
Returns
Section titled “Returns”Example
Section titled “Example”const { status, body } = toHttpResponse(error, { hideFeature: true });res.status(status).json(body);