Refracting exceptions - having both error_code and message for api errors