From 4e60725e59be86c82f853497233ca3b59ce82810 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 29 Dec 2025 14:50:38 +0100 Subject: [PATCH] Sync error code values with "Viceroy" - add missing XqdErrHttpHeadTooLarge (11) and XqdErrHttpInvalidStatus (12) - XqdErrLimitExceeded value is now 13 instead of 12 - XqdErrAgain is not 11 instead of 14 --- constants.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/constants.go b/constants.go index 6d1a80d..a8fd6e4 100644 --- a/constants.go +++ b/constants.go @@ -14,9 +14,11 @@ const ( XqdErrHttpParse int32 = 7 // HTTP parsing error XqdErrHttpUserInvalid int32 = 8 // Invalid HTTP user input XqdErrHttpIncomplete int32 = 9 // Incomplete HTTP message - XqdErrNone int32 = 10 // No value/data available - XqdErrAgain int32 = 11 // Operation would block (try again) - XqdErrLimitExceeded int32 = 12 // Resource limit exceeded + XqdErrNone int32 = 10 // No value/data available + XqdErrHttpHeadTooLarge int32 = 11 // HTTP header too large + XqdErrHttpInvalidStatus int32 = 12 // Invalid HTTP status code + XqdErrLimitExceeded int32 = 13 // Resource limit exceeded + XqdErrAgain int32 = 14 // Operation would block (try again) ) // HandleInvalid is returned when attempting to open a resource that doesn't exist