func (e *HttpCodeError) StatusCode() int {
	return e.statusCode
}
StatusCode returns the HTTP status code.
package xhttperror
import (
	"fmt"
	"net/http"
)
type XHTTPError interface {
	error
	StatusCode() int
}
type HttpCodeError struct {
	statusCode int
}
func NewHTTPStatusCodeError(status int) XHTTPError {
	return &HttpCodeError{status}
}
func (e *HttpCodeError) Error() string {
	return http.StatusText(e.statusCode)
}