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