fix to uri fetching. modified error response