call error handler if request status != 200