code: def http_error(status_code, title, detail=""):
      """Wrapper for error responce acoording with RFC 7807 (https://tools.ietf.org/html/rfc7807)
  
      :param status_code: int - http status code for response
      :param title: str
      :param detail: str
  
      :return: flask Response object
      """
      return Response(
          response=json.dumps({"title": title, "detail": detail}),
          status=status_code,
          headers={"Content-Type": "application/problem+json"},
      )
  
imports: import json
  import os
  from flask import Response
label_desc: Use image node_id 1 for calling a global function with example usage: http_error(status_code, title, detail) and returns: Response