-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to convert a status code into an error. #15
Comments
I'm interested in working on this so I've extracted the request from issue #5 to provide better visibility. |
@davecheney Can you assign this one to me? |
I'm not sure I can assign to people outside the Gorilla org, ill try. But for the record, this one is all yours :) On 07/08/2013, at 1:34, Kelsey Hightower notifications@github.com wrote:
|
Oh, it's probably already done, check client.go On 07/08/2013, at 1:31, Kelsey Hightower notifications@github.com wrote:
|
Yep, this was fixed in da054e3 |
As suggested by @davecheney the following could be added to the http package:
type StatusError Status
func (s *StatusError) Error() string
Which would allow us to convert a status code into an error.
The text was updated successfully, but these errors were encountered: