Change to Service Gateway to be able to specify return mimetype