Jsonify the response of post method and add status code and location.