feat: add workspace
This commit is contained in:
@@ -64,3 +64,15 @@ def PlacementNotFound(placement_id: uuid.UUID | None = None) -> HTTPException:
|
||||
if placement_id is None:
|
||||
return HTTPException(status.HTTP_404_NOT_FOUND, 'Placement not found')
|
||||
return HTTPException(status.HTTP_404_NOT_FOUND, f'Placement {placement_id} not found')
|
||||
|
||||
|
||||
def WorkspaceNotFound(workspace_id: uuid.UUID | None = None) -> HTTPException:
|
||||
if workspace_id is None:
|
||||
return HTTPException(status.HTTP_404_NOT_FOUND, 'Workspace not found')
|
||||
return HTTPException(status.HTTP_404_NOT_FOUND, f'Workspace {workspace_id} not found')
|
||||
|
||||
|
||||
def WorkspaceAccessDenied(workspace_id: uuid.UUID | None = None) -> HTTPException:
|
||||
if workspace_id is None:
|
||||
return HTTPException(status.HTTP_403_FORBIDDEN, 'Workspace access denied')
|
||||
return HTTPException(status.HTTP_403_FORBIDDEN, f'Workspace {workspace_id} access denied')
|
||||
|
||||
Reference in New Issue
Block a user