Normalize the endpoint behaviours through exception handling