error message added when rest api unreachable