From b4b19b9aa79a023e1f49df07fbe8ce5922b6ce56 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Mon, 3 Oct 2022 23:44:08 +0200 Subject: [PATCH] update `ContentNotAcceptable` error description (#4212) The `ContentNotAcceptableError` is triggered when client either requests an unsupported media type, or has form errors such as sending multiples. Updating the description to also indicate non-supported Accept headers. --- beacon_chain/rpc/rest_constants.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_chain/rpc/rest_constants.nim b/beacon_chain/rpc/rest_constants.nim index ca470f020..181824ba1 100644 --- a/beacon_chain/rpc/rest_constants.nim +++ b/beacon_chain/rpc/rest_constants.nim @@ -151,7 +151,7 @@ const InvalidLogLevelValueError* = "Invalid log level value error" ContentNotAcceptableError* = - "Could not find out accepted content type" + "Accepted media type not supported" InvalidAcceptError* = "Incorrect accept response type" MissingSubCommitteeIndexValueError* =