On magnetospheric response to solar wind discontinuities