Authentication exceptions for web service and rest service