(code int, err error)
| 222 | } |
| 223 | |
| 224 | func StatusError(code int, err error) error { |
| 225 | return statusHookError{ |
| 226 | Err: err, |
| 227 | HTTPStatusCode: code, |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | // statusHookError allows a hook to change the returned http status code. |
| 232 | type statusHookError struct { |
no outgoing calls