use getStatusCode in getBody in exception