Returns different types for auth and failure