title: Alamofire 3.2: How do I validate the response of an 'upload' POST call?
body: <p>I have a simple upload POST call, </p>
  
  <pre><code>Alamofire.upload(
      .POST,
      "https://httpbin.org/post",
      multipartFormData: { multipartFormData in
          multipartFormData.appendBodyPart(fileURL: unicornImageURL, name: "unicorn")
          multipartFormData.appendBodyPart(fileURL: rainbowImageURL, name: "rainbow")
      },
      encodingCompletion: { encodingResult in
          switch encodingResult {
          case .Success(let upload, _, _):
              upload.responseJSON { response in
                  debugPrint(response)
              }
          case .Failure(let encodingError):
              print(encodingError)
          }
      }
  )
  </code></pre>
  
  <p>It always goes to .Success case even when the response is a 404/500 error. </p>
  
  <p>My question is, how do I <code>validate</code> this request's response? </p>