func (client *IntClient) getUnderflowInt64HandleError(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)
}
getUnderflowInt64HandleError handles the GetUnderflowInt64 error response.
package integergroup
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"
	"time"
)
type IntClient struct {
	con *Connection
}
func NewIntClient(con *Connection) *IntClient {
	return &IntClient{con: con}
}
func (client *IntClient) GetInvalid(ctx context.Context, options *IntGetInvalidOptions) (IntGetInvalidResponse, error) {
	req, err := client.getInvalidCreateRequest(ctx, options)
	if err != nil {
		return IntGetInvalidResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return IntGetInvalidResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return IntGetInvalidResponse{}, client.getInvalidHandleError(resp)
	}
	return client.getInvalidHandleResponse(resp)
}
func (client *IntClient) getInvalidCreateRequest(ctx context.Context, options *IntGetInvalidOptions) (*policy.Request, error) {
	urlPath := "/int/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 *IntClient) getInvalidHandleResponse(resp *http.Response) (IntGetInvalidResponse, error) {
	result := IntGetInvalidResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return IntGetInvalidResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *IntClient) 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 *IntClient) GetInvalidUnixTime(ctx context.Context, options *IntGetInvalidUnixTimeOptions) (IntGetInvalidUnixTimeResponse, error) {
	req, err := client.getInvalidUnixTimeCreateRequest(ctx, options)
	if err != nil {
		return IntGetInvalidUnixTimeResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return IntGetInvalidUnixTimeResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return IntGetInvalidUnixTimeResponse{}, client.getInvalidUnixTimeHandleError(resp)
	}
	return client.getInvalidUnixTimeHandleResponse(resp)
}
func (client *IntClient) getInvalidUnixTimeCreateRequest(ctx context.Context, options *IntGetInvalidUnixTimeOptions) (*policy.Request, error) {
	urlPath := "/int/invalidunixtime"
	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 *IntClient) getInvalidUnixTimeHandleResponse(resp *http.Response) (IntGetInvalidUnixTimeResponse, error) {
	result := IntGetInvalidUnixTimeResponse{RawResponse: resp}
	var aux *timeUnix
	if err := runtime.UnmarshalAsJSON(resp, &aux); err != nil {
		return IntGetInvalidUnixTimeResponse{}, runtime.NewResponseError(err, resp)
	}
	result.Value = (*time.Time)(aux)
	return result, nil
}
func (client *IntClient) getInvalidUnixTimeHandleError(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 *IntClient) GetNull(ctx context.Context, options *IntGetNullOptions) (IntGetNullResponse, error) {
	req, err := client.getNullCreateRequest(ctx, options)
	if err != nil {
		return IntGetNullResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return IntGetNullResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return IntGetNullResponse{}, client.getNullHandleError(resp)
	}
	return client.getNullHandleResponse(resp)
}
func (client *IntClient) getNullCreateRequest(ctx context.Context, options *IntGetNullOptions) (*policy.Request, error) {
	urlPath := "/int/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 *IntClient) getNullHandleResponse(resp *http.Response) (IntGetNullResponse, error) {
	result := IntGetNullResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return IntGetNullResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *IntClient) 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 *IntClient) GetNullUnixTime(ctx context.Context, options *IntGetNullUnixTimeOptions) (IntGetNullUnixTimeResponse, error) {
	req, err := client.getNullUnixTimeCreateRequest(ctx, options)
	if err != nil {
		return IntGetNullUnixTimeResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return IntGetNullUnixTimeResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return IntGetNullUnixTimeResponse{}, client.getNullUnixTimeHandleError(resp)
	}
	return client.getNullUnixTimeHandleResponse(resp)
}
func (client *IntClient) getNullUnixTimeCreateRequest(ctx context.Context, options *IntGetNullUnixTimeOptions) (*policy.Request, error) {
	urlPath := "/int/nullunixtime"
	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 *IntClient) getNullUnixTimeHandleResponse(resp *http.Response) (IntGetNullUnixTimeResponse, error) {
	result := IntGetNullUnixTimeResponse{RawResponse: resp}
	var aux *timeUnix
	if err := runtime.UnmarshalAsJSON(resp, &aux); err != nil {
		return IntGetNullUnixTimeResponse{}, runtime.NewResponseError(err, resp)
	}
	result.Value = (*time.Time)(aux)
	return result, nil
}
func (client *IntClient) getNullUnixTimeHandleError(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 *IntClient) GetOverflowInt32(ctx context.Context, options *IntGetOverflowInt32Options) (IntGetOverflowInt32Response, error) {
	req, err := client.getOverflowInt32CreateRequest(ctx, options)
	if err != nil {
		return IntGetOverflowInt32Response{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return IntGetOverflowInt32Response{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return IntGetOverflowInt32Response{}, client.getOverflowInt32HandleError(resp)
	}
	return client.getOverflowInt32HandleResponse(resp)
}
func (client *IntClient) getOverflowInt32CreateRequest(ctx context.Context, options *IntGetOverflowInt32Options) (*policy.Request, error) {
	urlPath := "/int/overflowint32"
	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 *IntClient) getOverflowInt32HandleResponse(resp *http.Response) (IntGetOverflowInt32Response, error) {
	result := IntGetOverflowInt32Response{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return IntGetOverflowInt32Response{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *IntClient) getOverflowInt32HandleError(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 *IntClient) GetOverflowInt64(ctx context.Context, options *IntGetOverflowInt64Options) (IntGetOverflowInt64Response, error) {
	req, err := client.getOverflowInt64CreateRequest(ctx, options)
	if err != nil {
		return IntGetOverflowInt64Response{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return IntGetOverflowInt64Response{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return IntGetOverflowInt64Response{}, client.getOverflowInt64HandleError(resp)
	}
	return client.getOverflowInt64HandleResponse(resp)
}
func (client *IntClient) getOverflowInt64CreateRequest(ctx context.Context, options *IntGetOverflowInt64Options) (*policy.Request, error) {
	urlPath := "/int/overflowint64"
	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 *IntClient) getOverflowInt64HandleResponse(resp *http.Response) (IntGetOverflowInt64Response, error) {
	result := IntGetOverflowInt64Response{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return IntGetOverflowInt64Response{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *IntClient) getOverflowInt64HandleError(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 *IntClient) GetUnderflowInt32(ctx context.Context, options *IntGetUnderflowInt32Options) (IntGetUnderflowInt32Response, error) {
	req, err := client.getUnderflowInt32CreateRequest(ctx, options)
	if err != nil {
		return IntGetUnderflowInt32Response{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return IntGetUnderflowInt32Response{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return IntGetUnderflowInt32Response{}, client.getUnderflowInt32HandleError(resp)
	}
	return client.getUnderflowInt32HandleResponse(resp)
}
func (client *IntClient) getUnderflowInt32CreateRequest(ctx context.Context, options *IntGetUnderflowInt32Options) (*policy.Request, error) {
	urlPath := "/int/underflowint32"
	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 *IntClient) getUnderflowInt32HandleResponse(resp *http.Response) (IntGetUnderflowInt32Response, error) {
	result := IntGetUnderflowInt32Response{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return IntGetUnderflowInt32Response{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *IntClient) getUnderflowInt32HandleError(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 *IntClient) GetUnderflowInt64(ctx context.Context, options *IntGetUnderflowInt64Options) (IntGetUnderflowInt64Response, error) {
	req, err := client.getUnderflowInt64CreateRequest(ctx, options)
	if err != nil {
		return IntGetUnderflowInt64Response{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return IntGetUnderflowInt64Response{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return IntGetUnderflowInt64Response{}, client.getUnderflowInt64HandleError(resp)
	}
	return client.getUnderflowInt64HandleResponse(resp)
}
func (client *IntClient) getUnderflowInt64CreateRequest(ctx context.Context, options *IntGetUnderflowInt64Options) (*policy.Request, error) {
	urlPath := "/int/underflowint64"
	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 *IntClient) getUnderflowInt64HandleResponse(resp *http.Response) (IntGetUnderflowInt64Response, error) {
	result := IntGetUnderflowInt64Response{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return IntGetUnderflowInt64Response{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}