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

ErrorResponse Handling #336

Open
PascalJedi opened this issue Dec 7, 2020 · 1 comment
Open

ErrorResponse Handling #336

PascalJedi opened this issue Dec 7, 2020 · 1 comment

Comments

@PascalJedi
Copy link

Can we extend the SwiftError code to include the status code and response? This will allow us to trigger re-authentication on a 401/403 response. Unless I am missing some pattern (besides inspecting the description) that allows us to derive that information.

@meteochu
Copy link
Contributor

meteochu commented Dec 8, 2020

You can inspect the SwifterError.kind for the responseError(code) case to see the status code.

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