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