Factor out Endpoint.acceptable_exceptions for NotFound