check status code after inputstream. 

Moved status code request after input stream.
Disable one test for SDK15 since it does not provide errorstream for 401 code. Server is returning wrong code for failed refresh token and HttpUrlConnection is not providing error stream for 401 code.