I have set up a basic Python Flask API

```
import flask
from flask import jsonify
from camera_controller import camera_controller

app = flask.Flask(__name__)
app.config["DEBUG"] = True

app.config["JSONIFY_PRETTYPRINT_REGULAR"] = False

app.register_blueprint(camera_controller, url_prefix='/camera')

@app.route('/test', methods=['GET'])
def test():
    return jsonify({"result": "OK"})

app.run()

```

I've tested this in Chrome, FF and IE
Response Headers:

```
Content-Length: 21
Content-Type: application/json
Date: Thu, 18 Oct 2018 12:25:18 GMT
Server: Werkzeug/0.14.1 Python/3.6.2

Status Code: 200 OK

```

Response Body:

```
{
  "result": "OK"
}

```

I then make a request from Jquery but the response is being handled by the error function even though the response status is 200:

```
private fetchFrame() {            
    $.ajax({                
            url: `http://localhost:5000/test`,
            method: "get",
            cache: false,
            success: function (response) {

            },
            error: function (e) {
                console.log(e);
            }
        });
    }

```

The contents of the exception:

```
readyState: 0
status: 0
responseText: ""
statusText: "error"

```