MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / writeWorkspaceNotFound

Function writeWorkspaceNotFound

internal/server/server.go:3042–3044  ·  view source on GitHub ↗

writeWorkspaceNotFound writes the workspace-resolution 404 (BUG-3069). The message is passed through because two doors have long said "Workspace not found." with a period, and the text is not changing.

(w http.ResponseWriter, message string)

Source from the content-addressed store, hash-verified

3040// The message is passed through because two doors have long said
3041// "Workspace not found." with a period, and the text is not changing.
3042func writeWorkspaceNotFound(w http.ResponseWriter, message string) {
3043 writeError2(w, http.StatusNotFound, "not_found", message, workspaceNotFoundDetails())
3044}
3045
3046// writeInternalError logs the real error server-side and sends a generic
3047// message to the client. This prevents leaking SQL errors, file paths,

Callers 14

handleInviteMemberMethod · 0.85
getWorkspaceIDMethod · 0.85
getWorkspaceMethod · 0.85
handleSSEMethod · 0.85
handleUpdateWorkspaceMethod · 0.85
handleDeleteWorkspaceMethod · 0.85
requireAppWorkspaceMethod · 0.85
handleCreateUserTokenMethod · 0.85
handleOAuthClaimMethod · 0.85

Calls 2

writeError2Function · 0.85
workspaceNotFoundDetailsFunction · 0.85

Tested by

no test coverage detected