func NewListInvitesInternalServerError() *ListInvitesInternalServerError {
	return &ListInvitesInternalServerError{}
}
NewListInvitesInternalServerError creates a ListInvitesInternalServerError 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 ListInvitesReader struct {
	formats strfmt.Registry
}
func (o *ListInvitesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewListInvitesOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewListInvitesBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewListInvitesUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewListInvitesForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewListInvitesNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewListInvitesInternalServerError()
		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 NewListInvitesOK() *ListInvitesOK {
	return &ListInvitesOK{}
}
type ListInvitesOK struct {
	Payload *models.Invites
}
func (o *ListInvitesOK) Error() string {
	return fmt.Sprintf("[GET /invites][%d] listInvitesOK  %+v", 200, o.Payload)
}
func (o *ListInvitesOK) GetPayload() *models.Invites {
	return o.Payload
}
func (o *ListInvitesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.Invites)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewListInvitesBadRequest() *ListInvitesBadRequest {
	return &ListInvitesBadRequest{}
}
type ListInvitesBadRequest struct {
	Payload *models.BadRequestError
}
func (o *ListInvitesBadRequest) Error() string {
	return fmt.Sprintf("[GET /invites][%d] listInvitesBadRequest  %+v", 400, o.Payload)
}
func (o *ListInvitesBadRequest) GetPayload() *models.BadRequestError {
	return o.Payload
}
func (o *ListInvitesBadRequest) 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 NewListInvitesUnauthorized() *ListInvitesUnauthorized {
	return &ListInvitesUnauthorized{}
}
type ListInvitesUnauthorized struct {
	Payload *models.AuthenticationError
}
func (o *ListInvitesUnauthorized) Error() string {
	return fmt.Sprintf("[GET /invites][%d] listInvitesUnauthorized  %+v", 401, o.Payload)
}
func (o *ListInvitesUnauthorized) GetPayload() *models.AuthenticationError {
	return o.Payload
}
func (o *ListInvitesUnauthorized) 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 NewListInvitesForbidden() *ListInvitesForbidden {
	return &ListInvitesForbidden{}
}
type ListInvitesForbidden struct {
	Payload *models.AuthorizationError
}
func (o *ListInvitesForbidden) Error() string {
	return fmt.Sprintf("[GET /invites][%d] listInvitesForbidden  %+v", 403, o.Payload)
}
func (o *ListInvitesForbidden) GetPayload() *models.AuthorizationError {
	return o.Payload
}
func (o *ListInvitesForbidden) 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
}
func NewListInvitesNotFound() *ListInvitesNotFound {
	return &ListInvitesNotFound{}
}
type ListInvitesNotFound struct {
	Payload *models.NotFoundError
}
func (o *ListInvitesNotFound) Error() string {
	return fmt.Sprintf("[GET /invites][%d] listInvitesNotFound  %+v", 404, o.Payload)
}
func (o *ListInvitesNotFound) GetPayload() *models.NotFoundError {
	return o.Payload
}
func (o *ListInvitesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.NotFoundError)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}