more detailed error messages
We've run into an issue where data we tried to store wouldn't fit in the blob file. The error message was (416) The page range specified is invalid.
At first it wasn't clear whether we were trying to start saving beyond the page file or data didn't fit or something else was culprit. Eventually we figured it out.
It would be nice if the error message would provide more details: page size, size we tried to save, location we tried to save within the file, etc. This would've showed us the issue right away. Instead we had to spend a bit of time and contact Azure support about it.
Thank you for your feedback. We are currently working on providing this functionality and will provide updates when they become available. See the following article for the latest: https://docs.microsoft.com/en-us/rest/api/storageservices/status-and-error-codes2. Note that for REST API version 2017-07-29 and later, failed API operations also return the storage error code string in a response header. For any further questions, or to discuss your specific scenario, send us an email at email@example.com.
Ognyan Dimitrov commented
Yeah! When I see : 'The remote server returned an error: (500) Internal Server Error.'
I do not get excited about debugging it.
Shawn Weisfeld commented
The error when creating an account is just "argument out of range" it should tell you the rules or provide a link to them.
“Storage account names must be between 3 and 24 characters in length and may contain numbers and lowercase letters only.”