func (o *GetRelationTuplesInternalServerErrorBody) Validate(formats strfmt.Registry) error {
	return nil
}
Validate validates this get relation tuples internal server error body
package read
import (
	"context"
	"fmt"
	"io"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/ory/keto/internal/httpclient/models"
)
type GetRelationTuplesReader struct {
	formats strfmt.Registry
}
func (o *GetRelationTuplesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetRelationTuplesOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 404:
		result := NewGetRelationTuplesNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetRelationTuplesInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
	}
}
func NewGetRelationTuplesOK() *GetRelationTuplesOK {
	return &GetRelationTuplesOK{}
}
type GetRelationTuplesOK struct {
	Payload *models.GetRelationTuplesResponse
}
func (o *GetRelationTuplesOK) Error() string {
	return fmt.Sprintf("[GET /relation-tuples][%d] getRelationTuplesOK  %+v", 200, o.Payload)
}
func (o *GetRelationTuplesOK) GetPayload() *models.GetRelationTuplesResponse {
	return o.Payload
}
func (o *GetRelationTuplesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.GetRelationTuplesResponse)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetRelationTuplesNotFound() *GetRelationTuplesNotFound {
	return &GetRelationTuplesNotFound{}
}
type GetRelationTuplesNotFound struct {
	Payload *GetRelationTuplesNotFoundBody
}
func (o *GetRelationTuplesNotFound) Error() string {
	return fmt.Sprintf("[GET /relation-tuples][%d] getRelationTuplesNotFound  %+v", 404, o.Payload)
}
func (o *GetRelationTuplesNotFound) GetPayload() *GetRelationTuplesNotFoundBody {
	return o.Payload
}
func (o *GetRelationTuplesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(GetRelationTuplesNotFoundBody)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetRelationTuplesInternalServerError() *GetRelationTuplesInternalServerError {
	return &GetRelationTuplesInternalServerError{}
}
type GetRelationTuplesInternalServerError struct {
	Payload *GetRelationTuplesInternalServerErrorBody
}
func (o *GetRelationTuplesInternalServerError) Error() string {
	return fmt.Sprintf("[GET /relation-tuples][%d] getRelationTuplesInternalServerError  %+v", 500, o.Payload)
}
func (o *GetRelationTuplesInternalServerError) GetPayload() *GetRelationTuplesInternalServerErrorBody {
	return o.Payload
}
func (o *GetRelationTuplesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(GetRelationTuplesInternalServerErrorBody)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
type GetRelationTuplesInternalServerErrorBody struct {
	Code int64 `json:"code,omitempty"`
	Details []interface{} `json:"details"`
	Message string `json:"message,omitempty"`
	Reason string `json:"reason,omitempty"`
	Request string `json:"request,omitempty"`
	Status string `json:"status,omitempty"`
}