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