How to Extend and Build Custom Resolvers with Strapi v4

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?