code: def make_json_error(error):
      
      message = extract_error_message(error)
      status_code = extract_status_code(error)
      context = extract_context(error)
      retryable = extract_retryable(error)
      headers = extract_headers(error)
  
      # Flask will not log user exception (fortunately), but will log an error
      # for exceptions that escape out of the application entirely (e.g. if the
      # error handler raises an error)
      error_logger.debug("Handling {} error: {}".format(
          status_code,
          message,
      ))
  
      # Serialize into JSON response
      response_data = {
          "code": status_code,
          "context": context,
          "message": message,
          "retryable": retryable,
      }
      # Don't pass in the error schema because it will suppress any extra fields
      return dump_response_data(None, response_data, status_code, headers)
docs: Handle errors by logging and