BrandonRomano / wrecker

A golang request builder for JSON APIs
MIT License
24 stars 0 forks source link

Improve Error Handling #7

Closed benpate closed 9 years ago

benpate commented 9 years ago

Do you have any specific plans for handling HTTP errors?

Different REST APIs will have different return formats (JSON, Text, etc) -- but there should be some way to return some error information that is common to all APIs. For instance, you could return the HTTP status code along with the body text for additional parsing.

BrandonRomano commented 9 years ago

Hey @benpate. I actually plan on exposing the entire http.Response. I don't know why I'm actually not returning that already, so I'll work on this soon!