---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-21-4fd9d09b3294> in <module>
----> 1 Response.returnError('error')
<ipython-input-18-fb5156d07778> in returnError(cls, message, status, **kwargs)
59 def returnError(cls, message:str, status:int = 400, **kwargs)->dict:
60 '''add override statusCode Here by putting in the values directly'''
---> 61 return cls.getReturn(statusCode = statusCode, body = {'error': message}, **kwargs)
62 @classmethod
63 def returnSuccess(cls, body:dict = {}, status:int = 200, **kwargs)->dict:
NameError: name 'statusCode' is not defined