Added 401-UnauthorizedException

Fixes #3006