toHttpResponse
Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.
toHttpResponse(
error):HttpResponse
Defined in: packages/pipeline-casl/src/http.ts:22
The HTTP answer for an UnauthorizedActionException: 403 Forbidden, naming the
denied action and subject.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Example
Section titled “Example”const { status, body } = toHttpResponse(error);res.status(status).json(body);