graphql always returns 200 even if error exist.
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. I can see the error but status code is always 200. Any idea?