title: Sendgrid API with Alamofire
body: <p>I am using the Sendgrid API with Alamofire in my swift app. We are sending emails and everything is working find. With Sendgrid when a email is sent successfully, the response is nothing. Alamofire sees this as an error. Here is my code </p>
  
  <pre><code>switch response.result {
  case .success(let value):
      print ("return email: \(value)")
  case .failure(let error):
      print ("error: \(error)")
  }
  </code></pre>
  
  <p>I get this when the email sends successfully. "error: responseSerializationFailed(Alamofire.AFError.ResponseSerializationFailureReason.inputDataNilOrZeroLength)
  did connect socket"</p>
  
  <p>This makes sense of course since the response is nothing but we want to take actions when the email has been sent successfully. What is the best way to handle this? We do want to know if there is an error as well. </p>