Added better error message for get devices when server sends back status code 401