clienterror

package
v7.2.121 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package clienterror classifies upstream failures caused by the client request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsItemNotPersisted

func IsItemNotPersisted(message string) bool

IsItemNotPersisted matches the upstream 404 raised when a request references a response item the upstream never stored because `store` was false. The upstream sends this as a plain-text message rather than a JSON body, so it cannot be recognized through the structured identifiers above.

The request can only succeed once the client rebuilds it without the stale reference, so it is a request fault: rotating credentials cannot help, and the client must be told rather than left to retry the same broken input.

func IsRequestFault

func IsRequestFault(status int, err error) bool

IsRequestFault reports whether an upstream failure is caused by the request and therefore must not rotate or penalize credentials.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL