TODO check operation result based on the http header