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