In Gitea before 1.25.2, /api/v1/user has different responses for failed authentication depending on whether a username exists.
https://github.com/go-gitea/gitea/releases/tag/v1.25.2
https://github.com/go-gitea/gitea/pull/36002
https://github.com/go-gitea/gitea/issues/35984