(status int, resp codersdk.Response)
| 23 | } |
| 24 | |
| 25 | func NewResponseError(status int, resp codersdk.Response) error { |
| 26 | return &responseError{ |
| 27 | status: status, |
| 28 | response: resp, |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func WriteResponseError(ctx context.Context, rw http.ResponseWriter, err error) { |
| 33 | if responseErr, ok := IsResponder(err); ok { |
no outgoing calls