Only test status code if the response supports it.
Latest curl libraries.