service: return an user friendly error when endpoint is down.

Closes #342.