code: def configure_error_handlers(graph):
      
      # override all of the werkzeug HTTPExceptions
      for code in default_exceptions.keys():
          graph.flask.register_error_handler(code, make_json_error)
  
      # register catch all for user exceptions
      graph.flask.register_error_handler(Exception, make_json_error)
docs: Register error handlers.