get http error message from resources