return ErrorReponse in target cases