func NewCreateHTTPRequestRuleDefault(code int) *CreateHTTPRequestRuleDefault {
	if code <= 0 {
		code = 500
	}
	return &CreateHTTPRequestRuleDefault{
		_statusCode: code,
	}
}
NewCreateHTTPRequestRuleDefault creates CreateHTTPRequestRuleDefault with default headers values
package http_request_rule
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateHTTPRequestRuleCreatedCode int = 201
type CreateHTTPRequestRuleCreated struct {
	Payload *models.HTTPRequestRule `json:"body,omitempty"`
}
func NewCreateHTTPRequestRuleCreated() *CreateHTTPRequestRuleCreated {
	return &CreateHTTPRequestRuleCreated{}
}
func (o *CreateHTTPRequestRuleCreated) WithPayload(payload *models.HTTPRequestRule) *CreateHTTPRequestRuleCreated {
	o.Payload = payload
	return o
}
func (o *CreateHTTPRequestRuleCreated) SetPayload(payload *models.HTTPRequestRule) {
	o.Payload = payload
}
func (o *CreateHTTPRequestRuleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(201)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CreateHTTPRequestRuleAcceptedCode int = 202
type CreateHTTPRequestRuleAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.HTTPRequestRule `json:"body,omitempty"`
}
func NewCreateHTTPRequestRuleAccepted() *CreateHTTPRequestRuleAccepted {
	return &CreateHTTPRequestRuleAccepted{}
}
func (o *CreateHTTPRequestRuleAccepted) WithReloadID(reloadID string) *CreateHTTPRequestRuleAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CreateHTTPRequestRuleAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *CreateHTTPRequestRuleAccepted) WithPayload(payload *models.HTTPRequestRule) *CreateHTTPRequestRuleAccepted {
	o.Payload = payload
	return o
}
func (o *CreateHTTPRequestRuleAccepted) SetPayload(payload *models.HTTPRequestRule) {
	o.Payload = payload
}
func (o *CreateHTTPRequestRuleAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	reloadID := o.ReloadID
	if reloadID != "" {
		rw.Header().Set("Reload-ID", reloadID)
	}
	rw.WriteHeader(202)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CreateHTTPRequestRuleBadRequestCode int = 400
type CreateHTTPRequestRuleBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateHTTPRequestRuleBadRequest() *CreateHTTPRequestRuleBadRequest {
	return &CreateHTTPRequestRuleBadRequest{}
}
func (o *CreateHTTPRequestRuleBadRequest) WithConfigurationVersion(configurationVersion string) *CreateHTTPRequestRuleBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateHTTPRequestRuleBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateHTTPRequestRuleBadRequest) WithPayload(payload *models.Error) *CreateHTTPRequestRuleBadRequest {
	o.Payload = payload
	return o
}
func (o *CreateHTTPRequestRuleBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateHTTPRequestRuleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(400)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CreateHTTPRequestRuleConflictCode int = 409
type CreateHTTPRequestRuleConflict struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateHTTPRequestRuleConflict() *CreateHTTPRequestRuleConflict {
	return &CreateHTTPRequestRuleConflict{}
}
func (o *CreateHTTPRequestRuleConflict) WithConfigurationVersion(configurationVersion string) *CreateHTTPRequestRuleConflict {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateHTTPRequestRuleConflict) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateHTTPRequestRuleConflict) WithPayload(payload *models.Error) *CreateHTTPRequestRuleConflict {
	o.Payload = payload
	return o
}
func (o *CreateHTTPRequestRuleConflict) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *CreateHTTPRequestRuleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(409)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
type CreateHTTPRequestRuleDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}