Μετάβαση στο περιεχόμενο

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.

UnauthorizedActionException

HttpResponse

const { status, body } = toHttpResponse(error);
res.status(status).json(body);