{"modulePath":"github.com/codesphere-cloud/cs-go","version":"v1.72.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Functions\n\n```go\nfunc FormatAPIError(r *http.Response, err error) error\n```\n\n```go\nfunc IsRetryable(err error) bool\n```\nIsRetryable returns true if the error is a server error (HTTP 500, 502, 503, 504).\n\n## Types\n\n```go\ntype APIErrorResponse struct {\n\tStatus  int    `json:\"status\"`\n\tTitle   string `json:\"title\"`\n\tDetail  string `json:\"detail\"`\n\tTraceId string `json:\"traceId\"`\n}\n```\n\n```go\ntype DuplicatedError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc Duplicated(msg string) *DuplicatedError\n```\n\n```go\nfunc (e *DuplicatedError) Error() string\n```\n\n```go\ntype NotFoundError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NotFound(msg string) *NotFoundError\n```\n\n```go\nfunc (e *NotFoundError) Error() string\n```\n\n```go\ntype TimedOutError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc TimedOut(operation string, timeout time.Duration) *TimedOutError\n```\n\n```go\nfunc (e *TimedOutError) Error() string\n```\n\n","path":"github.com/codesphere-cloud/cs-go/api/errors","name":"errors","synopsis":"","isRedistributable":true}
