Seems #21 has to do with the stock enum type drifting from NSError.code's type (currently shown as NSInteger). Pegged the error enum to NSInteger to match, and avoid future casting issues.