When trying to check the availability of usernames at the matrix.org server using the Matrix protocol with the following command
curl -H "Content-Type: application/json" -X GET "https://matrix.org/_matrix/client/v3/register/available?username=john" -d "{}"
or this simplified one
curl -X GET "https://matrix.org/_matrix/client/v3/register/available?username=john"
I always get the error
{"errcode":"M_UNKNOWN","error":"Server is unavailable"}
I believe I send the request according to the specification, for a version that is supported by the server. The server is clearly available, as it 1. responds to the requests above (albeit with an error) and 2. responds correctly to a version request:
curl -H "Content-Type: application/json" url -X GET "https://matrix.org/_matrix/client/versions" -d "{}"
What am I doing wrong?
retry_after_msin the JSON, and noRetry-Afterresponse header either.