code: def dispatch_error(self, err):
          '''
          Handles the dispatch of errors
          '''
          try:
              data = {'error': [l for l in err.args]}
              body = self._meta.formatter.format(data)
          except Exception as ex:
              data = {'error': str(err)}
              body = self._meta.formatter.format(data)
  
          status = getattr(err, 'status', 500)
          return self.build_http_response(body, status=statusf dispatch_error(self, err):
          '''
          Handles the dispatch of errors
          '''
          try:
              data = {'error': [l for l in err.args]}
              body = self._meta.formatter.format(data)
          except Exception as ex:
              data = {'error': str(err)}
              body = self._meta.formatter.format(data)
  
          status = getattr(err, 'status', 500)
          return self.build_http_response(body, status=status)
docs: Handles the dispatch of errors