func (client *BoolClient) putFalseHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	errType := Error{raw: string(body)}
	if err := runtime.UnmarshalAsJSON(resp, &errType); err != nil {
		return runtime.NewResponseError(fmt.Errorf("%s\n%s", string(body), err), resp)
	}
	return runtime.NewResponseError(&errType, resp)
}
putFalseHandleError handles the PutFalse error response.
package booleangroup
import (
	"context"
	"fmt"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
	"net/http"
)
type BoolClient struct {
	con *Connection
}
func NewBoolClient(con *Connection) *BoolClient {
	return &BoolClient{con: con}
}
func (client *BoolClient) GetFalse(ctx context.Context, options *BoolGetFalseOptions) (BoolGetFalseResponse, error) {
	req, err := client.getFalseCreateRequest(ctx, options)
	if err != nil {
		return BoolGetFalseResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return BoolGetFalseResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return BoolGetFalseResponse{}, client.getFalseHandleError(resp)
	}
	return client.getFalseHandleResponse(resp)
}
func (client *BoolClient) getFalseCreateRequest(ctx context.Context, options *BoolGetFalseOptions) (*policy.Request, error) {
	urlPath := "/bool/false"
	req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *BoolClient) getFalseHandleResponse(resp *http.Response) (BoolGetFalseResponse, error) {
	result := BoolGetFalseResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return BoolGetFalseResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *BoolClient) getFalseHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	errType := Error{raw: string(body)}
	if err := runtime.UnmarshalAsJSON(resp, &errType); err != nil {
		return runtime.NewResponseError(fmt.Errorf("%s\n%s", string(body), err), resp)
	}
	return runtime.NewResponseError(&errType, resp)
}
func (client *BoolClient) GetInvalid(ctx context.Context, options *BoolGetInvalidOptions) (BoolGetInvalidResponse, error) {
	req, err := client.getInvalidCreateRequest(ctx, options)
	if err != nil {
		return BoolGetInvalidResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return BoolGetInvalidResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return BoolGetInvalidResponse{}, client.getInvalidHandleError(resp)
	}
	return client.getInvalidHandleResponse(resp)
}
func (client *BoolClient) getInvalidCreateRequest(ctx context.Context, options *BoolGetInvalidOptions) (*policy.Request, error) {
	urlPath := "/bool/invalid"
	req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *BoolClient) getInvalidHandleResponse(resp *http.Response) (BoolGetInvalidResponse, error) {
	result := BoolGetInvalidResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return BoolGetInvalidResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *BoolClient) getInvalidHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	errType := Error{raw: string(body)}
	if err := runtime.UnmarshalAsJSON(resp, &errType); err != nil {
		return runtime.NewResponseError(fmt.Errorf("%s\n%s", string(body), err), resp)
	}
	return runtime.NewResponseError(&errType, resp)
}
func (client *BoolClient) GetNull(ctx context.Context, options *BoolGetNullOptions) (BoolGetNullResponse, error) {
	req, err := client.getNullCreateRequest(ctx, options)
	if err != nil {
		return BoolGetNullResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return BoolGetNullResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return BoolGetNullResponse{}, client.getNullHandleError(resp)
	}
	return client.getNullHandleResponse(resp)
}
func (client *BoolClient) getNullCreateRequest(ctx context.Context, options *BoolGetNullOptions) (*policy.Request, error) {
	urlPath := "/bool/null"
	req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *BoolClient) getNullHandleResponse(resp *http.Response) (BoolGetNullResponse, error) {
	result := BoolGetNullResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return BoolGetNullResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *BoolClient) getNullHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	errType := Error{raw: string(body)}
	if err := runtime.UnmarshalAsJSON(resp, &errType); err != nil {
		return runtime.NewResponseError(fmt.Errorf("%s\n%s", string(body), err), resp)
	}
	return runtime.NewResponseError(&errType, resp)
}
func (client *BoolClient) GetTrue(ctx context.Context, options *BoolGetTrueOptions) (BoolGetTrueResponse, error) {
	req, err := client.getTrueCreateRequest(ctx, options)
	if err != nil {
		return BoolGetTrueResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return BoolGetTrueResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return BoolGetTrueResponse{}, client.getTrueHandleError(resp)
	}
	return client.getTrueHandleResponse(resp)
}
func (client *BoolClient) getTrueCreateRequest(ctx context.Context, options *BoolGetTrueOptions) (*policy.Request, error) {
	urlPath := "/bool/true"
	req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *BoolClient) getTrueHandleResponse(resp *http.Response) (BoolGetTrueResponse, error) {
	result := BoolGetTrueResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return BoolGetTrueResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *BoolClient) getTrueHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	errType := Error{raw: string(body)}
	if err := runtime.UnmarshalAsJSON(resp, &errType); err != nil {
		return runtime.NewResponseError(fmt.Errorf("%s\n%s", string(body), err), resp)
	}
	return runtime.NewResponseError(&errType, resp)
}
func (client *BoolClient) PutFalse(ctx context.Context, options *BoolPutFalseOptions) (BoolPutFalseResponse, error) {
	req, err := client.putFalseCreateRequest(ctx, options)
	if err != nil {
		return BoolPutFalseResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return BoolPutFalseResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return BoolPutFalseResponse{}, client.putFalseHandleError(resp)
	}
	return BoolPutFalseResponse{RawResponse: resp}, nil
}
func (client *BoolClient) putFalseCreateRequest(ctx context.Context, options *BoolPutFalseOptions) (*policy.Request, error) {
	urlPath := "/bool/false"
	req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	return req, runtime.MarshalAsJSON(req, false)
}