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