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

IIS ReasonPhrase "Site Disabled" not populated on iOS #237

Open
otebos opened this issue Dec 12, 2016 · 0 comments
Open

IIS ReasonPhrase "Site Disabled" not populated on iOS #237

otebos opened this issue Dec 12, 2016 · 0 comments

Comments

@otebos
Copy link

otebos commented Dec 12, 2016

Hi,
So I'm calling API that is hosted on Azure.
When my site is down, Azure returns 403 with ReasonPhrase "Site Disabled".
This works for Android but for iOS I have ReasonPhrase "Forbidden" which is generic and doesn't allow me to react properly in the app.
This also works on iOS if I use .NET HttpClient instead of ModernHttpClient.

I suspect that this is NSURLSession issue, not ModerHttpClient`s.
Do you know any workaround for this issue?

Do you know if I can get raw (xml) servers response to see what's there and manually handle such situation?

Thanks,
B.

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

1 participant