// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package sdkerrors import ( "encoding/json" "net/http" ) type GetLibraryItemsLibraryErrors struct { Code *int64 `json:"code,omitempty"` Message *string `json:"message,omitempty"` Status *int64 `json:"status,omitempty"` } func (o *GetLibraryItemsLibraryErrors) GetCode() *int64 { if o == nil { return nil } return o.Code } func (o *GetLibraryItemsLibraryErrors) GetMessage() *string { if o == nil { return nil } return o.Message } func (o *GetLibraryItemsLibraryErrors) GetStatus() *int64 { if o == nil { return nil } return o.Status } // GetLibraryItemsUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. type GetLibraryItemsUnauthorized struct { Errors []GetLibraryItemsLibraryErrors `json:"errors,omitempty"` // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response `json:"-"` } var _ error = &GetLibraryItemsUnauthorized{} func (e *GetLibraryItemsUnauthorized) Error() string { data, _ := json.Marshal(e) return string(data) } type GetLibraryItemsErrors struct { Code *int64 `json:"code,omitempty"` Message *string `json:"message,omitempty"` Status *int64 `json:"status,omitempty"` } func (o *GetLibraryItemsErrors) GetCode() *int64 { if o == nil { return nil } return o.Code } func (o *GetLibraryItemsErrors) GetMessage() *string { if o == nil { return nil } return o.Message } func (o *GetLibraryItemsErrors) GetStatus() *int64 { if o == nil { return nil } return o.Status } // GetLibraryItemsBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly. type GetLibraryItemsBadRequest struct { Errors []GetLibraryItemsErrors `json:"errors,omitempty"` // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response `json:"-"` } var _ error = &GetLibraryItemsBadRequest{} func (e *GetLibraryItemsBadRequest) Error() string { data, _ := json.Marshal(e) return string(data) }