Fixed non-existent property "code" in response object (on failure) ..

When I used invalidateDistribution(), calling this method caused Notice.
Reason is, StdClass with response does not contains property code (at least on request failure)..