Documentation ¶
Overview ¶
Utility functions for producing errorneous http responses
Index ¶
Constants ¶
View Source
const (
StatusTooManyRequests = 429
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter interface {
Format(ProxyError) (statusCode int, body []byte, contentType string)
}
type JsonFormatter ¶
type JsonFormatter struct { }
func (*JsonFormatter) Format ¶
func (f *JsonFormatter) Format(err ProxyError) (int, []byte, string)
type ProxyError ¶
Click to show internal directories.
Click to hide internal directories.