Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExitOK = 0 ExitGeneral = 1 // generic / unknown error ExitAuth = 2 // authentication failure (401/403) ExitNotFound = 3 // resource not found (404) ExitConflict = 4 // conflict (409) ExitBadRequest = 5 // invalid input / bad request (400) ExitTimeout = 6 // operation timed out ExitCancelled = 7 // user cancelled (e.g. declined confirmation) )
Exit codes for structured error handling in scripts and agents.
Variables ¶
This section is empty.
Functions ¶
func ExitCodeFromError ¶ added in v0.7.0
ExitCodeFromError returns an appropriate exit code for the given error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.