package httptypes
import "go.etcd.io/etcd/server/v3/etcdserver/api/etcdhttp/types"
Index ¶
Types ¶
type HTTPError ¶
type HTTPError struct {
Message string `json:"message"`
// Code is the HTTP status code
Code int `json:"-"`
}
func NewHTTPError ¶
func (HTTPError) Error ¶
func (HTTPError) WriteTo ¶
func (e HTTPError) WriteTo(w http.ResponseWriter) error
Source Files ¶
errors.go
- Version
- v3.6.10 (latest)
- Published
- Apr 1, 2026
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 weeks ago –
Tools for package owners.