User-Agent header is required for API calls

I’m using the unofficial Java API client dynomake/libretranslate-java and years ago it stopped working.
The API server closes a connection if the User-Agent header is empty and this results in “java.net.SocketException: Connection reset”

Are any reasons why the UA is required? The UA should be just deprecated on the HTTP spec level because it was needed only in old times to add IE specific quirks. Today it just waste of resources. Maybe you could make the header as not required for simplicity.

What’s the endpoint you’re trying to translate with?

The UA should not be required.