code: def test_handle_error_with_code(self, app):
      api = restplus.Api(app, serve_challenge_on_401=True)
  
      exception = Exception()
      exception.code = "Not an integer"
      exception.data = {"foo": "bar"}
  
      response = api.handle_error(exception)
      assert response.status_code == 500
      assert json.loads(response.data.decode()) == {"foo": "bar"}
  
imports: from __future__ import unicode_literals
  import json
  import logging
  import pytest
  from flask import Blueprint, abort
  from flask.signals import got_request_exception
  from werkzeug.exceptions import HTTPException, BadRequest, NotFound, Aborter
  from werkzeug.http import quote_etag, unquote_etag
  import flask_restplus
label_desc: Use image node_id 35 for calling the ErrorsTest obj's underlying member method code with example usage: obj.test_handle_error_with_code(app) without return types