Removes custom response code from Flask implementation

Uses Flask's built-in `make_response()` function to return a response object. This fixes a bug that occurred when a Flask view function returns a status code as an integer (like `200`) as opposed to a string (like `'200 OK'`).