Set the status code of the reponse if the extracion fails