you should get it only when the status code allows it to avoid useless work