fix: Unauthorized instead of ValueError