title: Get server response message from error
body: <p>My server (CakePHP) is responding like so:</p>
  
  <pre><code>$this-&gt;response-&gt;statusCode('400');
  $this-&gt;response-&gt;type('json');
  $this-&gt;response-&gt;body(json_encode(array('message' =&gt; 'Bookmark already exists')));
  </code></pre>
  
  <p>The Postman output looks like what you would expect:</p>
  
  <p>{"message":"Bookmark already exists"}</p>
  
  <p>The problem is that I cannot find a way to access this message from the failure handler (Alamofire 3.1.3 + SwiftyJSON 2.3.2)</p>
  
  <pre><code>Alamofire.request(.POST...
  .validate()
  .responseJSON { response in
  
  switch response.result {
  
  case .Success(_):                           
  // All good
  
  case .Failure(let error):
  // Status code 400                 
  print(response.request)  // original URL request
  print(response.response) // URL response
  print(response.data)     // server data
  print(response.result)
  </code></pre>
  
  <p>I cannot find a way to cast response.data to JSON as a I simply get nil and the result returns just FAILURE.</p>
  
  <p>Is there a way to access this server message from the failure handler ?</p>