Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akash-network/provider
/ NewHttpError
Function
NewHttpError
utils/httperror/httperror.go:41–43 ·
view source on GitHub ↗
(statusCode int, err error)
Source
from the content-addressed store, hash-verified
39
}
40
41
func
NewHttpError(statusCode int, err error) *HttpError {
42
return
&HttpError{Err: err, StatusCode: statusCode}
43
}
44
45
func
StatusCodeFrom(err error) int {
46
if
err == nil {
Callers
7
ManifestSubmitErrorToHTTP
Function · 0.92
clusterErrorToHTTP
Function · 0.92
authErrorResponse
Function · 0.92
TestRoutePutManifest_errors_return_correct_status
Function · 0.92
TestStatusCodeFrom
Function · 0.92
TestStatusCodeFrom
Function · 0.85
httperror.go
File · 0.85
Calls
no outgoing calls
Tested by
3
TestRoutePutManifest_errors_return_correct_status
Function · 0.74
TestStatusCodeFrom
Function · 0.74
TestStatusCodeFrom
Function · 0.68