From 20c633213affc98c9d345a9c762ce02f0c4e280e Mon Sep 17 00:00:00 2001 From: eth2353 <70237279+eth2353@users.noreply.github.com> Date: Wed, 11 Mar 2026 14:01:33 +0100 Subject: [PATCH] Return 404 for all endpoints if key not found --- apis/fee_recipient.yaml | 8 ++------ apis/gas_limit.yaml | 6 +----- apis/graffiti.yaml | 6 +----- keymanager-oapi.yaml | 2 +- 4 files changed, 5 insertions(+), 17 deletions(-) diff --git a/apis/fee_recipient.yaml b/apis/fee_recipient.yaml index 5532f50..30a9bd4 100644 --- a/apis/fee_recipient.yaml +++ b/apis/fee_recipient.yaml @@ -111,10 +111,6 @@ delete: schema: $ref: "../keymanager-oapi.yaml#/components/schemas/ErrorResponse" "404": - description: The key was not found on the server, nothing to delete. - content: - application/json: - schema: - $ref: "../keymanager-oapi.yaml#/components/schemas/ErrorResponse" + $ref: "../keymanager-oapi.yaml#/components/responses/NotFound" "500": - $ref: "../keymanager-oapi.yaml#/components/responses/InternalError" \ No newline at end of file + $ref: "../keymanager-oapi.yaml#/components/responses/InternalError" diff --git a/apis/gas_limit.yaml b/apis/gas_limit.yaml index 34f4daf..b8bd339 100644 --- a/apis/gas_limit.yaml +++ b/apis/gas_limit.yaml @@ -117,10 +117,6 @@ delete: schema: $ref: "../keymanager-oapi.yaml#/components/schemas/ErrorResponse" "404": - description: The key was not found on the server, nothing to delete. - content: - application/json: - schema: - $ref: "../keymanager-oapi.yaml#/components/schemas/ErrorResponse" + $ref: "../keymanager-oapi.yaml#/components/responses/NotFound" "500": $ref: "../keymanager-oapi.yaml#/components/responses/InternalError" diff --git a/apis/graffiti.yaml b/apis/graffiti.yaml index 4454878..3c453c2 100644 --- a/apis/graffiti.yaml +++ b/apis/graffiti.yaml @@ -112,10 +112,6 @@ delete: schema: $ref: "../keymanager-oapi.yaml#/components/schemas/ErrorResponse" "404": - description: The key was not found on the server, nothing to delete. - content: - application/json: - schema: - $ref: "../keymanager-oapi.yaml#/components/schemas/ErrorResponse" + $ref: "../keymanager-oapi.yaml#/components/responses/NotFound" "500": $ref: "../keymanager-oapi.yaml#/components/responses/InternalError" diff --git a/keymanager-oapi.yaml b/keymanager-oapi.yaml index 009fe9a..a5422ab 100644 --- a/keymanager-oapi.yaml +++ b/keymanager-oapi.yaml @@ -114,7 +114,7 @@ components: schema: $ref: "#/components/schemas/ErrorResponse" NotFound: - description: "Path not found" + description: "The key was not found on the server" content: application/json: schema: