Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

Merge branch 'main' into fix/not-found-status-codes

Andrej09071729501e
diff --cc apps/api/src/index.ts
index f4851ca36,db9bd4ffb..f872bdbf3
--- a/apps/api/src/index.ts
+++ b/apps/api/src/index.ts
@@@ -449,10 -501,9 +501,11 @@@ export function createApp()
content: { "*/*": { schema: { type: "string", format: "binary" } } },
},
304: { description: "Not modified" },
- 403: errorResponse("No access to this asset"),
+ 403: errorResponse(
+ "Staged upload owned by another user, or no access to the asset's project",
+ ),
404: errorResponse("Asset not found"),
+ 429: apiKeyRateLimited.ref,
},
}),
async (c) => {
diff --cc apps/docs/openapi.json
index 2c94fc644,42c65af48..c19555281
--- a/apps/docs/openapi.json
+++ b/apps/docs/openapi.json
@@@ -19941,15 -20273,8 +20523,18 @@@
}
}
},
+ "404": {
+ "description": "Task not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
++ },
+ "429": {
+ "$ref": "#/components/responses/ApiKeyRateLimited"
}
}
},