fix digest params order and http errors