From 0811cbfc2868ee80c522fd426f188f10b06cd421 Mon Sep 17 00:00:00 2001 From: brunoerg Date: Sat, 15 Jan 2022 15:37:59 -0300 Subject: [PATCH] doc: add info about status code 404 for some rest endpoints --- doc/REST-interface.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/REST-interface.md b/doc/REST-interface.md index 51a73b89fc..1e0e701df5 100644 --- a/doc/REST-interface.md +++ b/doc/REST-interface.md @@ -31,6 +31,7 @@ Supported API `GET /rest/tx/.` Given a transaction hash: returns a transaction in binary, hex-encoded binary, or JSON formats. +Responds with 404 if the transaction doesn't exist. By default, this endpoint will only search the mempool. To query for a confirmed transaction, enable the transaction index via "txindex=1" command line / configuration option. @@ -70,6 +71,7 @@ Responds with 404 if the block doesn't exist. `GET /rest/blockhashbyheight/.` Given a height: returns hash of block in best-block-chain at height provided. +Responds with 404 if block not found. #### Chaininfos `GET /rest/chaininfo.json`