graphql always returns 200.
const ctx = strapi.requestContext.get();
ctx.throw(401, "error.");
or
throw new ForbiddenError("error.");
I have writed these in policy, rest api working as expected but graphql not. Any idea?
graphql always returns 200.
const ctx = strapi.requestContext.get();
ctx.throw(401, "error.");
or
throw new ForbiddenError("error.");
I have writed these in policy, rest api working as expected but graphql not. Any idea?