docs: def __invalid_request(self, error):
          """ Error response on failure """
          # TODO: make this modifiable
          error = {
              'error': {
                  'message': error
              }
          }
          abort(JsonResponse(status_code=400, data=error))