Fixed error message on invalid endpoint URI