func (se *StatusError) MarshalJSON() ([]byte, error) {
	errText := strings.Replace(strings.ToLower(http.StatusText(se.statusCode)), " ", "_", -1)
	if errText == "" {
		errText = "unknown"
	}
	return json.Marshal(map[string]string{
		"error":  errText,
		"reason": se.message,
	})
}
// MarshalJSON satisifies the json.Marshaler interface for the StatusError
// type.
MarshalJSON satisifies the json.Marshaler interface for the StatusError
type.
// MarshalJSON satisifies the json . Marshaler interface for the StatusError // type .
func (se *StatusError) MarshalJSON() ([]byte, error) {
	errText := strings.Replace(strings.ToLower(http.StatusText(se.statusCode)), " ", "_", -1)
	if errText == "" {
		errText = "unknown"
	}
	return json.Marshal(map[string]string{
		"error":  errText,
		"reason": se.message,
	})
}
func ( se * StatusError ) MarshalJSON ( ) ( [ ] byte , error ) { errText := strings . Replace ( strings . ToLower ( http . StatusText ( se . statusCode ) ) , " " , " " , - 1 ) if errText == " " { errText = " " } return json . Marshal ( map [ string ] string { " " : errText , " " : se . message , } ) }
MarshalJSON satisifies the json.Marshaler interface for the StatusError
type.
MarshalJSON satisifies the json . Marshaler interface for the StatusError type .