// WithStatusCode adds the status to the create task default response
519930
func (o *CreateTaskDefault) WithStatusCode(code int) *CreateTaskDefault {
	o._statusCode = code
	return o
}
868306
func (s *PhaseContext) SetStatusCode(v string) *PhaseContext {
	s.StatusCode = &v
	return s
}
325355
func (r *URIBuilder) StatusCode(code int) *URIBuilder {
	r.cacheStatuscode = code
	return r
}
290619
func HasStatusCode(err error, statusCode ...int) bool {
	e, ok := err.(arangoError)
	if !ok {
		return false
	}
	code := e.statusCode
	for _, c := range statusCode {
		if code == c {
			return true
		}
		break
	}
	return false
}
1052390
func (o *LogoutUserDefault) WithStatusCode(code int) *LogoutUserDefault {
	o._statusCode = code
	return o
}
1336976
func (s *JobDescription) SetStatusCode(v string) *JobDescription {
	s.StatusCode = &v
	return s
}
314103
func (err Error) WithCode(code int) *Error {
	err.Code = code
	if text := http.StatusText(code); text != "" {
		err.Err = text
	}
	return &err
}
756465
func (s *ScalingPlan) SetStatusCode(v string) *ScalingPlan {
	s.StatusCode = &v
	return s
}
886920
func (o *GetOrdersForItemDefault) WithStatusCode(code int) *GetOrdersForItemDefault {
	o._statusCode = code
	return o
}
1104589
func getHTTPStatusCode(status *tokenStatus, err error) *tokenStatus {
	if err == nil {
		status.status = http.StatusOK
	} else {
		if obj, ok := err.(SFXAPIError); ok {
			status.status = obj.StatusCode
		}
	}
	return status
}
376765
func (o *CreateUsersWithArrayInputDefault) WithStatusCode(code int) *CreateUsersWithArrayInputDefault {
	o._statusCode = code
	return o
}
1353762
func FromStatusCode(statusCode int, format string, args ...interface{}) error {
	msg := fmt.Sprintf(format, args...)
	switch statusCode {
	case http.StatusNotFound:
		return NewNotFoundErrorFromString(msg)
	case http.StatusBadRequest:
		return NewBadParameterErrorFromString(msg)
	case http.StatusConflict:
		return NewVersionConflictError(msg)
	case http.StatusUnauthorized:
		return NewUnauthorizedError(msg)
	case http.StatusForbidden:
		return NewForbiddenError(msg)
	default:
		return NewInternalErrorFromString(msg)
	}
}
231697
func (o *DestroyOneDefault) WithStatusCode(code int) *DestroyOneDefault {
	o._statusCode = code
	return o
}
27273
func (o *UpdateOneDefault) WithStatusCode(code int) *UpdateOneDefault {
	o._statusCode = code
	return o
}
582418
func (s *EndpointMessageResult) SetStatusCode(v int64) *EndpointMessageResult {
	s.StatusCode = &v
	return s
}
1325364
func (s *MethodResponse) SetStatusCode(v string) *MethodResponse {
	s.StatusCode = &v
	return s
}
272987
func (c *Context) AbortWithStatus(code int) {
	c.Status(code)
	c.Writer.WriteHeaderNow()
	c.Abort()
}