Allow custom response on session expiry
Merge branch 'release/1.1.0'