Source file src/net/http/internal/common.go

     1  // Copyright 2026 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package internal
     6  
     7  import "errors"
     8  
     9  var (
    10  	ErrAbortHandler    = errors.New("net/http: abort Handler")
    11  	ErrBodyNotAllowed  = errors.New("http: request method or response status code does not allow body")
    12  	ErrRequestCanceled = errors.New("net/http: request canceled")
    13  	ErrSkipAltProtocol = errors.New("net/http: skip alternate protocol")
    14  )
    15  

View as plain text