Hello,
I have two questions about the response from the /2/files/upload endpoint when an expired access token is used.
First, the top-level error field has the tag other, rather than expired_access_token. The expired_access_token value appears only as JSON-encoded text inside user_message.text, similar to the following:
{"error" => {".tag" => "other"},
"error_summary" => "other/...",
"user_message" => {"locale" => "en",
"text" => "{\"error\":{\".tag\":\"expired_access_token\"},\"error_summary\":\"expired_access_token/\"}"}}
x-dropbox-request-id: "fb4661de27c24ad982ab7d896a94d259"
Could you confirm whether this is the expected behavior for content-upload endpoints?
I was told that authentication errors for these endpoints may be surfaced through user_message rather than through a specific top-level error tag. Is this behavior documented anywhere? Also, since user_message appears intended primarily for display to users, is it considered a stable and supported field for programmatic error handling?
Second, the API response no longer includes the WWW-Authenticate header. Could you clarify when this change was introduced and whether the omission is intentional?
What is the recommended and reliable way to detect an expired access token when calling /2/files/upload? Should clients inspect user_message or error_summary for expired_access_token, or is there another structured field or header that should be used?
Thank you.