Consistent handling of exceptions when out of endpoint