code: func New(ctx context.Context, next http.Handler, config config.ErrorPage, serviceBuilder serviceBuilder, name string) (http.Handler, error) {
  	middlewares.GetLogger(ctx, name, typeName).Debug("Creating middleware")
  
  	httpCodeRanges, err := types.NewHTTPCodeRanges(config.Status)
  	if err != nil {
  		return nil, err
  	}
  
  	backend, err := serviceBuilder.BuildHTTP(ctx, config.Service, nil)
  	if err != nil {
  		return nil, err
  	}
  
  	return &customErrors{
  		name:           name,
  		next:           next,
  		backendHandler: backend,
  		httpCodeRanges: httpCodeRanges,
  		backendQuery:   config.Query,
  	}, nil
  }
docs: // New creates a new custom error pages middleware.