src/server/pkg/errutil/http.go
func (h *HTTPError) Code() int {
	if h == nil {
		return http.StatusOK
	}
	return h.code
}
func (h *HTTPError) Code() int {
	if h == nil {
		return http.StatusOK
	}
	return h.code
}
// Code returns the HTTP error code associated with 'h'