UnauthorizedError: call captureStackTrace

Capture the stacktrace when creating an UnauthorizedError.