title: AFNetworking Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: not found (404)"
body: <p>getting error in AFNetworking.Error Domain=com.alamofire.error.serialization.response Code=-1011 
  success block never get called.
  what does this error means...i am not using Alamofire then why is it giving error like </p>
  
  <blockquote>
    <p>Domain=com.alamofire.error.serialization.response Code=-1011</p>
  </blockquote>
  
  <pre><code>class HTTPClient: NSObject {
  
  class var sharedInstance: HTTPClient {
      struct Singleton {
          static let instance = HTTPClient()
      }
      return Singleton.instance
  }
  
  func postFileWithParameter(path:String,parameters:[String:String],profilePic : UIImage?, success : (AnyObject?) -&gt; () , failure : (NSError?) -&gt; ()) {
  
      let manager = AFHTTPRequestOperationManager()
      manager.responseSerializer = AFHTTPResponseSerializer()
      manager.POST(path, parameters: parameters, constructingBodyWithBlock:
          {  (formData) -&gt; Void in
  
              if let ppic = profilePic , data = UIImageJPEGRepresentation(ppic,1.0) {
                  formData.appendPartWithFileData(data, name: "image", fileName: "Unknown.jpg", mimeType: "image/jpeg")
              }
          }
          , success: {
              (operation,response) -&gt; Void in
              print("success block")
              do {
  
                  success(try NSJSONSerialization.JSONObjectWithData(response as! NSData, options: .MutableLeaves))
              } catch {
  
              }
          }) {
              (operation,error) -&gt; Void in
              failure(error)
      }        
  }
  
  class ViewController: UIViewController {
  
  override func viewDidLoad() {
      super.viewDidLoad()      
  
      let URL = "http://52.37.13.12/user/"
  
      guard   let image = UIImage(named: "Unknown") else {
          return }
  
      let parameters:[String:String] = ["linkedin_id ":"125464563","name":"rahul","email":"cxv@gmail.com","job":"dsf","city":"chd","company":"xyz","profile_url":"http:\\www.linkedin.com","otherdata":"df"]               
    HTTPClient.sharedInstance.postFileWithParameter(URL, parameters: parameters, profilePic: image, success: {
          response in
          print(response)
  
          }, failure: {
              error in
              debugPrint(error)
      })
  }
  }
  </code></pre>