Turn debug mode on
Log rest client exception before formatting the error