From f40d849241fd5bba3c3704d40700f1264d308660 Mon Sep 17 00:00:00 2001 From: Giuseppe Lo Presti Date: Wed, 6 May 2026 15:21:46 +0200 Subject: [PATCH] Fixed 400 and 404 responses for /request-share --- spec.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/spec.yaml b/spec.yaml index 3fc3360..09c399a 100644 --- a/spec.yaml +++ b/spec.yaml @@ -54,13 +54,21 @@ paths: "201": description: > Consumer successfully received request. - "404": + "400": description: > - Bad request due to invalid parameters, e.g. when `share` is missing. + Bad request due to invalid or missing parameters. content: application/json: schema: $ref: "#/components/schemas/400" + "404": + description: > + The requested `share` is missing, or the requestor does not have + rights to access it. + content: + application/json: + schema: + $ref: "#/components/schemas/Error" "501": description: The server doesn't support requesting shares. content: