func NewCreateInviteForbidden() *CreateInviteForbidden {
	return &CreateInviteForbidden{}
}
NewCreateInviteForbidden creates a CreateInviteForbidden with default headers values
package invites
import (
	"fmt"
	"io"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/fugue/fugue-client/models"
)
type CreateInviteReader struct {
	formats strfmt.Registry
}
func (o *CreateInviteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 201:
		result := NewCreateInviteCreated()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewCreateInviteBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewCreateInviteUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewCreateInviteForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewCreateInviteNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewCreateInviteInternalServerError()
		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 NewCreateInviteCreated() *CreateInviteCreated {
	return &CreateInviteCreated{}
}
type CreateInviteCreated struct {
	Payload *models.Invite
}
func (o *CreateInviteCreated) Error() string {
	return fmt.Sprintf("[POST /invites][%d] createInviteCreated  %+v", 201, o.Payload)
}
func (o *CreateInviteCreated) GetPayload() *models.Invite {
	return o.Payload
}
func (o *CreateInviteCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.Invite)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewCreateInviteBadRequest() *CreateInviteBadRequest {
	return &CreateInviteBadRequest{}
}
type CreateInviteBadRequest struct {
	Payload *models.BadRequestError
}
func (o *CreateInviteBadRequest) Error() string {
	return fmt.Sprintf("[POST /invites][%d] createInviteBadRequest  %+v", 400, o.Payload)
}
func (o *CreateInviteBadRequest) GetPayload() *models.BadRequestError {
	return o.Payload
}
func (o *CreateInviteBadRequest) 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 NewCreateInviteUnauthorized() *CreateInviteUnauthorized {
	return &CreateInviteUnauthorized{}
}
type CreateInviteUnauthorized struct {
	Payload *models.AuthenticationError
}
func (o *CreateInviteUnauthorized) Error() string {
	return fmt.Sprintf("[POST /invites][%d] createInviteUnauthorized  %+v", 401, o.Payload)
}
func (o *CreateInviteUnauthorized) GetPayload() *models.AuthenticationError {
	return o.Payload
}
func (o *CreateInviteUnauthorized) 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
}