protected override void OnRegisterDeviceWithAlias(string token, string alias) { iOSRegistrationPayload registration = new iOSRegistrationPayload() { DeviceAlias = alias }; using (HttpWebResponse response = this.Client.HttpPut("/device_tokens/" + token, registration, this.payloadSerializer)) { if (response.StatusCode != HttpStatusCode.OK && response.StatusCode != HttpStatusCode.Created) // 201 or 200 { throw new UrbanAirshipException("Unable to register device token"); } } }