From 11e5c27f8298bc8ce0f6d3c5c1f64c3936eeb6b9 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Tue, 25 Jul 2023 03:59:41 +0200 Subject: [PATCH] Update syncing status requirements in getHealth (#341) * Syncing status query parameter must be valid http status code (100-599) * 400 reponse if invalid syncing status code --- apis/node/health.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apis/node/health.yaml b/apis/node/health.yaml index 3bd8f390..19f18a8e 100644 --- a/apis/node/health.yaml +++ b/apis/node/health.yaml @@ -11,12 +11,14 @@ get: description: "Customize syncing status instead of default status code (206)" schema: type: integer - minimum: 1 + minimum: 100 maximum: 599 responses: "200": description: Node is ready "206": description: Node is syncing but can serve incomplete data + "400": + description: Invalid syncing status code "503": description: Node not initialized or having issues