setHttpStatus sets the http status for the error object
(code int)
| 41 | |
| 42 | // setHttpStatus sets the http status for the error object |
| 43 | func (e *Error) setHTTPStatus(code int) { |
| 44 | e.Status = strconv.Itoa(code) |
| 45 | } |
| 46 | |
| 47 | // Error implements the error interface |
| 48 | func (e Error) Error() string { |
no outgoing calls