working on search request

implemented custom error