Use InternalError for unexpected server errors

'InvalidURI' doesn't give correct information about what happened.
'InternalError' is much better.

Change-Id: Id88ac87d6097dc8d2ff67bcad28059f8ea187ec4
Merge "Use InternalError for unexpected server errors"