MCPcopy Index your code
hub / github.com/devtron-labs/devtron / WithHttpStatusCode

Method WithHttpStatusCode

internal/util/ErrorUtil.go:53–56  ·  view source on GitHub ↗
(httpStatusCode int)

Source from the content-addressed store, hash-verified

51}
52
53func (e *ApiError) WithHttpStatusCode(httpStatusCode int) *ApiError {
54 e.HttpStatusCode = httpStatusCode
55 return e
56}
57
58func (e *ApiError) WithCode(code string) *ApiError {
59 e.Code = code

Calls

no outgoing calls

Tested by

no test coverage detected