Improve error handling to show detailed errors for response exceptions (when display errors is enabled).