// Special case for context.Cancel error. It is of type errorString, which is not very useful.
if errors.Is(err, context.Canceled) {
}
// Special case for context.DeadlineExceeded error. It is of unexported type deadlineExceededError.
if errors.Is(err, context.DeadlineExceeded) {