Set HTTP status code with jsonify
Updated to return no data element for non-200 responses
Added test and fixed get message api