execute callback on request error