updating the status code on the response