client: handle errors in delete requests