I'd also take this out of the API client entirely. This should probably be on `response` directly, but could also be a class method on `NSError`. I'd lean towards the former.