Closed alexchamberlain closed 4 years ago
@alexchamberlain Better late than never - I use to return those.
class GraphExecutionError(GraphQLError):
def __init__(self, message, code=None, params=None):
super().__init__(message)
self.message = str(message)
self.code = code
self.params = params
``
Is it possible to return a 401 error from middleware? I've tried raising an HTTPQueryError, but it's being intercepted and returned as JSON, with 200 status.