// Code generated by go-swagger; DO NOT EDIT.

package featured_tags

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"encoding/json"
	"fmt"
	"io"

	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
)

// GetFeaturedTagsReader is a Reader for the GetFeaturedTags structure.
type GetFeaturedTagsReader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *GetFeaturedTagsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetFeaturedTagsOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetFeaturedTagsBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewGetFeaturedTagsUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewGetFeaturedTagsNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 406:
		result := NewGetFeaturedTagsNotAcceptable()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetFeaturedTagsInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("[GET /api/v1/featured_tags] getFeaturedTags", response, response.Code())
	}
}

// NewGetFeaturedTagsOK creates a GetFeaturedTagsOK with default headers values
func NewGetFeaturedTagsOK() *GetFeaturedTagsOK {
	return &GetFeaturedTagsOK{}
}

/*
GetFeaturedTagsOK describes a response with status code 200, with default header values.

GetFeaturedTagsOK get featured tags o k
*/
type GetFeaturedTagsOK struct {
	Payload []interface{}
}

// IsSuccess returns true when this get featured tags o k response has a 2xx status code
func (o *GetFeaturedTagsOK) IsSuccess() bool {
	return true
}

// IsRedirect returns true when this get featured tags o k response has a 3xx status code
func (o *GetFeaturedTagsOK) IsRedirect() bool {
	return false
}

// IsClientError returns true when this get featured tags o k response has a 4xx status code
func (o *GetFeaturedTagsOK) IsClientError() bool {
	return false
}

// IsServerError returns true when this get featured tags o k response has a 5xx status code
func (o *GetFeaturedTagsOK) IsServerError() bool {
	return false
}

// IsCode returns true when this get featured tags o k response a status code equal to that given
func (o *GetFeaturedTagsOK) IsCode(code int) bool {
	return code == 200
}

// Code gets the status code for the get featured tags o k response
func (o *GetFeaturedTagsOK) Code() int {
	return 200
}

func (o *GetFeaturedTagsOK) Error() string {
	payload, _ := json.Marshal(o.Payload)
	return fmt.Sprintf("[GET /api/v1/featured_tags][%d] getFeaturedTagsOK %s", 200, payload)
}

func (o *GetFeaturedTagsOK) String() string {
	payload, _ := json.Marshal(o.Payload)
	return fmt.Sprintf("[GET /api/v1/featured_tags][%d] getFeaturedTagsOK %s", 200, payload)
}

func (o *GetFeaturedTagsOK) GetPayload() []interface{} {
	return o.Payload
}

func (o *GetFeaturedTagsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	// response payload
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewGetFeaturedTagsBadRequest creates a GetFeaturedTagsBadRequest with default headers values
func NewGetFeaturedTagsBadRequest() *GetFeaturedTagsBadRequest {
	return &GetFeaturedTagsBadRequest{}
}

/*
GetFeaturedTagsBadRequest describes a response with status code 400, with default header values.

bad request
*/
type GetFeaturedTagsBadRequest struct {
}

// IsSuccess returns true when this get featured tags bad request response has a 2xx status code
func (o *GetFeaturedTagsBadRequest) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this get featured tags bad request response has a 3xx status code
func (o *GetFeaturedTagsBadRequest) IsRedirect() bool {
	return false
}

// IsClientError returns true when this get featured tags bad request response has a 4xx status code
func (o *GetFeaturedTagsBadRequest) IsClientError() bool {
	return true
}

// IsServerError returns true when this get featured tags bad request response has a 5xx status code
func (o *GetFeaturedTagsBadRequest) IsServerError() bool {
	return false
}

// IsCode returns true when this get featured tags bad request response a status code equal to that given
func (o *GetFeaturedTagsBadRequest) IsCode(code int) bool {
	return code == 400
}

// Code gets the status code for the get featured tags bad request response
func (o *GetFeaturedTagsBadRequest) Code() int {
	return 400
}

func (o *GetFeaturedTagsBadRequest) Error() string {
	return fmt.Sprintf("[GET /api/v1/featured_tags][%d] getFeaturedTagsBadRequest", 400)
}

func (o *GetFeaturedTagsBadRequest) String() string {
	return fmt.Sprintf("[GET /api/v1/featured_tags][%d] getFeaturedTagsBadRequest", 400)
}

func (o *GetFeaturedTagsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	return nil
}

// NewGetFeaturedTagsUnauthorized creates a GetFeaturedTagsUnauthorized with default headers values
func NewGetFeaturedTagsUnauthorized() *GetFeaturedTagsUnauthorized {
	return &GetFeaturedTagsUnauthorized{}
}

/*
GetFeaturedTagsUnauthorized describes a response with status code 401, with default header values.

unauthorized
*/
type GetFeaturedTagsUnauthorized struct {
}

// IsSuccess returns true when this get featured tags unauthorized response has a 2xx status code
func (o *GetFeaturedTagsUnauthorized) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this get featured tags unauthorized response has a 3xx status code
func (o *GetFeaturedTagsUnauthorized) IsRedirect() bool {
	return false
}

// IsClientError returns true when this get featured tags unauthorized response has a 4xx status code
func (o *GetFeaturedTagsUnauthorized) IsClientError() bool {
	return true
}

// IsServerError returns true when this get featured tags unauthorized response has a 5xx status code
func (o *GetFeaturedTagsUnauthorized) IsServerError() bool {
	return false
}

// IsCode returns true when this get featured tags unauthorized response a status code equal to that given
func (o *GetFeaturedTagsUnauthorized) IsCode(code int) bool {
	return code == 401
}

// Code gets the status code for the get featured tags unauthorized response
func (o *GetFeaturedTagsUnauthorized) Code() int {
	return 401
}

func (o *GetFeaturedTagsUnauthorized) Error() string {
	return fmt.Sprintf("[GET /api/v1/featured_tags][%d] getFeaturedTagsUnauthorized", 401)
}

func (o *GetFeaturedTagsUnauthorized) String() string {
	return fmt.Sprintf("[GET /api/v1/featured_tags][%d] getFeaturedTagsUnauthorized", 401)
}

func (o *GetFeaturedTagsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	return nil
}

// NewGetFeaturedTagsNotFound creates a GetFeaturedTagsNotFound with default headers values
func NewGetFeaturedTagsNotFound() *GetFeaturedTagsNotFound {
	return &GetFeaturedTagsNotFound{}
}

/*
GetFeaturedTagsNotFound describes a response with status code 404, with default header values.

not found
*/
type GetFeaturedTagsNotFound struct {
}

// IsSuccess returns true when this get featured tags not found response has a 2xx status code
func (o *GetFeaturedTagsNotFound) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this get featured tags not found response has a 3xx status code
func (o *GetFeaturedTagsNotFound) IsRedirect() bool {
	return false
}

// IsClientError returns true when this get featured tags not found response has a 4xx status code
func (o *GetFeaturedTagsNotFound) IsClientError() bool {
	return true
}

// IsServerError returns true when this get featured tags not found response has a 5xx status code
func (o *GetFeaturedTagsNotFound) IsServerError() bool {
	return false
}

// IsCode returns true when this get featured tags not found response a status code equal to that given
func (o *GetFeaturedTagsNotFound) IsCode(code int) bool {
	return code == 404
}

// Code gets the status code for the get featured tags not found response
func (o *GetFeaturedTagsNotFound) Code() int {
	return 404
}

func (o *GetFeaturedTagsNotFound) Error() string {
	return fmt.Sprintf("[GET /api/v1/featured_tags][%d] getFeaturedTagsNotFound", 404)
}

func (o *GetFeaturedTagsNotFound) String() string {
	return fmt.Sprintf("[GET /api/v1/featured_tags][%d] getFeaturedTagsNotFound", 404)
}

func (o *GetFeaturedTagsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	return nil
}

// NewGetFeaturedTagsNotAcceptable creates a GetFeaturedTagsNotAcceptable with default headers values
func NewGetFeaturedTagsNotAcceptable() *GetFeaturedTagsNotAcceptable {
	return &GetFeaturedTagsNotAcceptable{}
}

/*
GetFeaturedTagsNotAcceptable describes a response with status code 406, with default header values.

not acceptable
*/
type GetFeaturedTagsNotAcceptable struct {
}

// IsSuccess returns true when this get featured tags not acceptable response has a 2xx status code
func (o *GetFeaturedTagsNotAcceptable) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this get featured tags not acceptable response has a 3xx status code
func (o *GetFeaturedTagsNotAcceptable) IsRedirect() bool {
	return false
}

// IsClientError returns true when this get featured tags not acceptable response has a 4xx status code
func (o *GetFeaturedTagsNotAcceptable) IsClientError() bool {
	return true
}

// IsServerError returns true when this get featured tags not acceptable response has a 5xx status code
func (o *GetFeaturedTagsNotAcceptable) IsServerError() bool {
	return false
}

// IsCode returns true when this get featured tags not acceptable response a status code equal to that given
func (o *GetFeaturedTagsNotAcceptable) IsCode(code int) bool {
	return code == 406
}

// Code gets the status code for the get featured tags not acceptable response
func (o *GetFeaturedTagsNotAcceptable) Code() int {
	return 406
}

func (o *GetFeaturedTagsNotAcceptable) Error() string {
	return fmt.Sprintf("[GET /api/v1/featured_tags][%d] getFeaturedTagsNotAcceptable", 406)
}

func (o *GetFeaturedTagsNotAcceptable) String() string {
	return fmt.Sprintf("[GET /api/v1/featured_tags][%d] getFeaturedTagsNotAcceptable", 406)
}

func (o *GetFeaturedTagsNotAcceptable) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	return nil
}

// NewGetFeaturedTagsInternalServerError creates a GetFeaturedTagsInternalServerError with default headers values
func NewGetFeaturedTagsInternalServerError() *GetFeaturedTagsInternalServerError {
	return &GetFeaturedTagsInternalServerError{}
}

/*
GetFeaturedTagsInternalServerError describes a response with status code 500, with default header values.

internal server error
*/
type GetFeaturedTagsInternalServerError struct {
}

// IsSuccess returns true when this get featured tags internal server error response has a 2xx status code
func (o *GetFeaturedTagsInternalServerError) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this get featured tags internal server error response has a 3xx status code
func (o *GetFeaturedTagsInternalServerError) IsRedirect() bool {
	return false
}

// IsClientError returns true when this get featured tags internal server error response has a 4xx status code
func (o *GetFeaturedTagsInternalServerError) IsClientError() bool {
	return false
}

// IsServerError returns true when this get featured tags internal server error response has a 5xx status code
func (o *GetFeaturedTagsInternalServerError) IsServerError() bool {
	return true
}

// IsCode returns true when this get featured tags internal server error response a status code equal to that given
func (o *GetFeaturedTagsInternalServerError) IsCode(code int) bool {
	return code == 500
}

// Code gets the status code for the get featured tags internal server error response
func (o *GetFeaturedTagsInternalServerError) Code() int {
	return 500
}

func (o *GetFeaturedTagsInternalServerError) Error() string {
	return fmt.Sprintf("[GET /api/v1/featured_tags][%d] getFeaturedTagsInternalServerError", 500)
}

func (o *GetFeaturedTagsInternalServerError) String() string {
	return fmt.Sprintf("[GET /api/v1/featured_tags][%d] getFeaturedTagsInternalServerError", 500)
}

func (o *GetFeaturedTagsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	return nil
}
