Skip to content
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

Error status code #48

Closed
dccarmo opened this issue Jun 9, 2015 · 3 comments
Closed

Error status code #48

dccarmo opened this issue Jun 9, 2015 · 3 comments

Comments

@dccarmo
Copy link

dccarmo commented Jun 9, 2015

It'd be great if API.responseErrorFromObject(object:) returned a NSHTTPURLResponse - it'd help to validate HTTP status codes.

@dccarmo
Copy link
Author

dccarmo commented Jun 9, 2015

Or maybe return the status code.

@ishkawa
Copy link
Owner

ishkawa commented Jun 11, 2015

Yes, we will add NSHTTPURLResponse to the arguments of responseErrorFromObject(_:).

@ishkawa
Copy link
Owner

ishkawa commented Jul 30, 2015

NSHTTPURLResponse is now available in Request.responseFromObject(_:URLResponse:)!

func responseFromObject(object: AnyObject, URLResponse: NSHTTPURLResponse) -> Response?

@ishkawa ishkawa closed this as completed Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants