Correct purge API url

Using an outdated purge url that is no longer valid.
Status Code is response.statusCode, not response.code