func NewUpdateCustomRuleNotFound() *UpdateCustomRuleNotFound {
	return &UpdateCustomRuleNotFound{}
}
NewUpdateCustomRuleNotFound creates a UpdateCustomRuleNotFound with default headers values
package custom_rules
import (
	"fmt"
	"io"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/fugue/fugue-client/models"
)
type UpdateCustomRuleReader struct {
	formats strfmt.Registry
}
func (o *UpdateCustomRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewUpdateCustomRuleOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewUpdateCustomRuleBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewUpdateCustomRuleUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewUpdateCustomRuleForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewUpdateCustomRuleNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewUpdateCustomRuleInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("unknown error", response, response.Code())
	}
}
func NewUpdateCustomRuleOK() *UpdateCustomRuleOK {
	return &UpdateCustomRuleOK{}
}
type UpdateCustomRuleOK struct {
	Payload *models.CustomRuleWithErrors
}
func (o *UpdateCustomRuleOK) Error() string {
	return fmt.Sprintf("[PATCH /rules/{rule_id}][%d] updateCustomRuleOK  %+v", 200, o.Payload)
}
func (o *UpdateCustomRuleOK) GetPayload() *models.CustomRuleWithErrors {
	return o.Payload
}
func (o *UpdateCustomRuleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.CustomRuleWithErrors)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewUpdateCustomRuleBadRequest() *UpdateCustomRuleBadRequest {
	return &UpdateCustomRuleBadRequest{}
}
type UpdateCustomRuleBadRequest struct {
	Payload *models.BadRequestError
}
func (o *UpdateCustomRuleBadRequest) Error() string {
	return fmt.Sprintf("[PATCH /rules/{rule_id}][%d] updateCustomRuleBadRequest  %+v", 400, o.Payload)
}
func (o *UpdateCustomRuleBadRequest) GetPayload() *models.BadRequestError {
	return o.Payload
}
func (o *UpdateCustomRuleBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.BadRequestError)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewUpdateCustomRuleUnauthorized() *UpdateCustomRuleUnauthorized {
	return &UpdateCustomRuleUnauthorized{}
}
type UpdateCustomRuleUnauthorized struct {
	Payload *models.AuthenticationError
}
func (o *UpdateCustomRuleUnauthorized) Error() string {
	return fmt.Sprintf("[PATCH /rules/{rule_id}][%d] updateCustomRuleUnauthorized  %+v", 401, o.Payload)
}
func (o *UpdateCustomRuleUnauthorized) GetPayload() *models.AuthenticationError {
	return o.Payload
}
func (o *UpdateCustomRuleUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.AuthenticationError)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewUpdateCustomRuleForbidden() *UpdateCustomRuleForbidden {
	return &UpdateCustomRuleForbidden{}
}
type UpdateCustomRuleForbidden struct {
	Payload *models.AuthorizationError
}
func (o *UpdateCustomRuleForbidden) Error() string {
	return fmt.Sprintf("[PATCH /rules/{rule_id}][%d] updateCustomRuleForbidden  %+v", 403, o.Payload)
}
func (o *UpdateCustomRuleForbidden) GetPayload() *models.AuthorizationError {
	return o.Payload
}
func (o *UpdateCustomRuleForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.AuthorizationError)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}