Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/danielgtaylor/huma
/ Error
Method
Error
error.go:150–150 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
148
type
StatusError
interface
{
149
GetStatus() int
150
Error() string
151
}
152
153
// HeadersError is an error that has HTTP headers. When returned from an
Callers
15
getAPIPrefix
Function · 0.65
TestResponseContentTypeWithExtensions
Function · 0.65
TestCustomError
Function · 0.65
Add
Method · 0.65
Error
Method · 0.65
error.go
File · 0.65
TestError
Function · 0.65
TestNegotiateError
Function · 0.65
TestTransformError
Function · 0.65
TestErrorWithHeaders
Function · 0.65
TestValidateCustomFormatter
Function · 0.65
Test_validateWithDiscriminator
Function · 0.65
Implementers
3
MyError
huma_test.go
ErrorModel
error.go
MyError
examples/custom-error/main.go
Calls
no outgoing calls
Tested by
15
TestResponseContentTypeWithExtensions
Function · 0.52
TestCustomError
Function · 0.52
TestError
Function · 0.52
TestNegotiateError
Function · 0.52
TestTransformError
Function · 0.52
TestErrorWithHeaders
Function · 0.52
TestValidateCustomFormatter
Function · 0.52
Test_validateWithDiscriminator
Function · 0.52
TestDumpBodyError
Function · 0.52
TestConvert
Function · 0.52
TestConvertError
Function · 0.52
TestIfMatch
Function · 0.52