Suppress event emitted warnings.
Also ensure a response exists before checking its status code.