Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
func NewAPIError ¶
type ErrorResponse ¶
type ErrorResponse struct {
// The status code of the error message. This is always the same code as the status code of the HTTP message itself.
Status int64 `json:"status"`
// The HTTP reason phrase of the error. For example, for a `404` error, the `title` will be `Not Found`.
Title string `json:"title"`
// A detailed human-readable description of the error that occurred.
Detail string `json:"detail"`
// If the error was caused by a value provided by you in a specific field, the `field` property will contain the name
// of the field that caused the issue.
Field *string `json:"field,omitempty"`
Links components.ErrorResponseLinks `json:"_links"`
HTTPMeta components.HTTPMetadata `json:"-"`
}
ErrorResponse - An error response object.
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
Click to show internal directories.
Click to hide internal directories.