func NewTestCustomRuleForbidden() *TestCustomRuleForbidden {
	return &TestCustomRuleForbidden{}
}
NewTestCustomRuleForbidden creates a TestCustomRuleForbidden 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 TestCustomRuleReader struct {
	formats strfmt.Registry
}
func (o *TestCustomRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewTestCustomRuleOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewTestCustomRuleBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewTestCustomRuleUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewTestCustomRuleForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewTestCustomRuleInternalServerError()
		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 NewTestCustomRuleOK() *TestCustomRuleOK {
	return &TestCustomRuleOK{}
}
type TestCustomRuleOK struct {
	Payload *models.TestCustomRuleOutput
}
func (o *TestCustomRuleOK) Error() string {
	return fmt.Sprintf("[POST /rules/test][%d] testCustomRuleOK  %+v", 200, o.Payload)
}
func (o *TestCustomRuleOK) GetPayload() *models.TestCustomRuleOutput {
	return o.Payload
}
func (o *TestCustomRuleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.TestCustomRuleOutput)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewTestCustomRuleBadRequest() *TestCustomRuleBadRequest {
	return &TestCustomRuleBadRequest{}
}
type TestCustomRuleBadRequest struct {
	Payload *models.BadRequestError
}
func (o *TestCustomRuleBadRequest) Error() string {
	return fmt.Sprintf("[POST /rules/test][%d] testCustomRuleBadRequest  %+v", 400, o.Payload)
}
func (o *TestCustomRuleBadRequest) GetPayload() *models.BadRequestError {
	return o.Payload
}
func (o *TestCustomRuleBadRequest) 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 NewTestCustomRuleUnauthorized() *TestCustomRuleUnauthorized {
	return &TestCustomRuleUnauthorized{}
}
type TestCustomRuleUnauthorized struct {
	Payload *models.AuthenticationError
}
func (o *TestCustomRuleUnauthorized) Error() string {
	return fmt.Sprintf("[POST /rules/test][%d] testCustomRuleUnauthorized  %+v", 401, o.Payload)
}
func (o *TestCustomRuleUnauthorized) GetPayload() *models.AuthenticationError {
	return o.Payload
}
func (o *TestCustomRuleUnauthorized) 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
}