// NewErrorTooManyInFlight creates an error for exceeding the maximum number of in-flight requests. func NewErrorTooManyInFlight() error { … } // WriteError translates a CRI streaming error into an appropriate HTTP response. func WriteError(err error, w http.ResponseWriter) error { … }