title: PayPal 400 Bad Request, more specific?
body: <p>Is there any way to get a more specific PayPal error than 400 bad request? I saw someone doing something like this:</p>
  
  <pre><code>if (ex.InnerException is ConnectionException)
  {
      Response.Write(((ConnectionException) ex.InnerException).Response);
  }
  else
  {
      Response.Write(ex.Message);
  }
  </code></pre>
  
  <p>But that doesn't seem to do anything different for me, all the error says is:
  "The remote server returned an error: (400) Bad Request."</p>
  
  <p>I've read that it could have something to do with some sort of validation error, but I've tried changing the data I'm sending to PayPal, but all with no luck so far.</p>
  
  <p>I hope you can help me, thank you!</p>
  
  <p>EDIT:</p>
  
  <p>Thanks to Aydin I managed to find this error-message in one of the HTTP requests through Fiddler:</p>
  
  <pre><code>{"name":"VALIDATION_ERROR","details":[{"field":"payer.funding_instruments[0].credit_card.number","issue":"Value is invalid"}],"message":"Invalid request - see details","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR","debug_id":"dd5f11f6e9c98"}
  </code></pre>