code: def handle_error(self, error, req, schema, error_status_code, error_headers):
          
          status_code = error_status_code or self.DEFAULT_VALIDATION_STATUS
          response = exception_response(
              status_code,
              detail=text_type(error),
              headers=error_headers,
              content_type="application/json",
          )
          body = json.dumps(error.messages)
          response.body = body.encode("utf-8") if isinstance(body, text_type) else body
          raise response
docs: Handles errors during parsing. Aborts the current HTTP request and
          responds with a 400 error.