fix errors when response code is 204,300,304