diff --git a/components/server/src/workspace/gitpod-server-impl.ts b/components/server/src/workspace/gitpod-server-impl.ts index c44dc3db3644f4..786bd703d2b1d2 100644 --- a/components/server/src/workspace/gitpod-server-impl.ts +++ b/components/server/src/workspace/gitpod-server-impl.ts @@ -924,7 +924,7 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable { protected async internalGetWorkspace(id: string, db: WorkspaceDB): Promise { const ws = await db.findById(id); if (!ws) { - throw new Error(`No workspace with id '${id}' found.`); + throw new ResponseError(ErrorCodes.NOT_FOUND, "Workspace not found."); } return ws; }