Move creation of attributes to RequestException

Pass request objects in HTTPAdapter
Avoid having to fix tests
Explicitly check for None
Merge pull request #1891 from sigmavirus24/add-requests-to-exceptions

Add request to RequestException