Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

enhancement = add option to save/record http errors. #12

Open
johndpope-karhoo opened this issue Oct 5, 2016 · 1 comment
Open

enhancement = add option to save/record http errors. #12

johndpope-karhoo opened this issue Oct 5, 2016 · 1 comment

Comments

@johndpope-karhoo
Copy link

  I'm using this library in conjunction with ohttpstubs 

Was using the SWHttpTrafficRecorder recorder to audit the traffic - while it may seem not worthwhile - I've since added a new stub to reflect error codes returned from server.

let notConnectedError = NSError(domain:NSURLErrorDomain, code:62), userInfo:["NSLocalizedDescription":"Error getting Trip"] )
return OHHTTPStubsResponse(error:notConnectedError)

@johndpope-karhoo
Copy link
Author

johndpope-karhoo commented Oct 5, 2016

eventually when it is ready to be consumed it would be glued into something like this
AliSoftware/OHHTTPStubs#214

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant