// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. package sdkerrors import ( "encoding/json" "net/http" ) type GetServerIdentityErrors struct { Code *float64 `json:"code,omitempty"` Message *string `json:"message,omitempty"` Status *float64 `json:"status,omitempty"` } func (o *GetServerIdentityErrors) GetCode() *float64 { if o == nil { return nil } return o.Code } func (o *GetServerIdentityErrors) GetMessage() *string { if o == nil { return nil } return o.Message } func (o *GetServerIdentityErrors) GetStatus() *float64 { if o == nil { return nil } return o.Status } // GetServerIdentityResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. type GetServerIdentityResponseBody struct { Errors []GetServerIdentityErrors `json:"errors,omitempty"` // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response `json:"-"` } var _ error = &GetServerIdentityResponseBody{} func (e *GetServerIdentityResponseBody) Error() string { data, _ := json.Marshal(e) return string(data) }