Where should we add the StatusCode verification

Hi,

After running the test case I save the request and response text in a txt file. Problem is if the status code is equal to 500 then nothing is saved because the response and request objects are null.
Currently my status code check verification is under the verification tab of the request. If I remove that the verification from the request verification tab to test case,
then failed and passed requests and responses are saved. Is there anyway to leave the verifications under the request and still save the failed request and response text?

WS.verifyResponseStatusCode(response1, 200)
assertThat(response1.getStatusCode()).isEqualTo(200)

Thanks