Added unauthorized security filter an response code mapping
Fixed TokenService bug