Ensure response's status code is checked first