MCPcopy Index your code
hub / github.com/coder/coder / NewResponseError

Function NewResponseError

coderd/httpapi/httperror/responserror.go:25–30  ·  view source on GitHub ↗
(status int, resp codersdk.Response)

Source from the content-addressed store, hash-verified

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

Callers 15

createWorkspaceFunction · 0.92
requestTemplateFunction · 0.92
tasksCreateMethod · 0.92
taskUpdateInputMethod · 0.92
taskSendMethod · 0.92
fetchLiveTaskLogsMethod · 0.92
fetchSnapshotTaskLogsMethod · 0.92
chatStartWorkspaceMethod · 0.92

Calls

no outgoing calls