title: Swift creating NSError Object
body: <p>I am trying to create an error object to display to the user.</p>
  
  <pre><code>let userInfo: [NSObject : AnyObject] = 
      [
      "NSLocalizedDescriptionKey" :  NSLocalizedString("Unauthorized", comment: ""),
      "NSLocalizedFailureReasonErrorKey" : NSLocalizedString("Unauthorized", comment: "")
      ]
  let err = NSError(domain: "ShiploopHttpResponseErrorDomain", code: httpResponse.statusCode, userInfo: userInfo)
  print("Error in Post: \(err.localizedDescription)")
  </code></pre>
  
  <p>Unfortunately the output is:</p>
  
  <pre><code>Error in Post: The operation couldn’t be completed.(ShiploopHttpResponseErrorDomain error 401.) 
  </code></pre>
  
  <p>I want to be able to show to the user that he should activate his account. Any ideas??</p>