Improved error handling, including for Service Unavailable responses.