Throw exception when status code larger than 400