Do not try doing stuff with body if undefined (ex: 500 status code).