Adding provided dependency on servlet api, handling expired authorization exceptions