HTTP: Add function for using new style errors with fallback (#51627)

This commit is contained in:
Emil Tullstedt
2022-07-13 13:14:28 +02:00
committed by GitHub
parent 4ff0f006dd
commit dd6d71ee4b
3 changed files with 147 additions and 0 deletions
+4
View File
@@ -110,6 +110,10 @@ func (s CoreStatus) LogLevel() LogLevel {
}
}
func (s CoreStatus) String() string {
return string(s)
}
// ProxyStatus implies that an error originated from the data source
// proxy.
type ProxyStatus CoreStatus