Get HTTP Status Code in Android WebView

It’s not possible (as of the time i’m writing this). The docs for onReceiveError() are ambiguous at best, but it you look at this issue,

http://code.google.com/p/android/issues/detail?id=968

It’s clear that HTTP status codes won’t be reported through that mechanism. How it’s possible that the developers wrote WebView with no way to retrieve the HTTP status code really blows my mind.

Leave a Comment