Skip to content

Commit 13ec2c1

Browse files
committed
Merge bitcoin/bitcoin#24084: doc: add information about status code 404 for some endpoints (rest)
0811cbf doc: add info about status code 404 for some rest endpoints (brunoerg) Pull request description: This PR adds an explanation about status code 404 for 2 endpoints (`/rest/tx/ `and `/rest/blockhashbyheight/`) in`REST-interface.md`. There are other endpoints that already cover it. ACKs for top commit: [deleted]: reACK bitcoin/bitcoin@0811cbf shaavan: ACK 0811cbf Tree-SHA512: a01ac6653f706b7a7e4a4679a2b81e448381f31460ac4bcfc179af6186401cffae7b49a82f3a52c89e556acd5c16c159ce752c7a678177900ddf2e4e5c72fe6b
2 parents abf2090 + 0811cbf commit 13ec2c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/REST-interface.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Supported API
3131
`GET /rest/tx/<TX-HASH>.<bin|hex|json>`
3232

3333
Given a transaction hash: returns a transaction in binary, hex-encoded binary, or JSON formats.
34+
Responds with 404 if the transaction doesn't exist.
3435

3536
By default, this endpoint will only search the mempool.
3637
To query for a confirmed transaction, enable the transaction index via "txindex=1" command line / configuration option.
@@ -76,6 +77,7 @@ Responds with 404 if the block doesn't exist.
7677
`GET /rest/blockhashbyheight/<HEIGHT>.<bin|hex|json>`
7778

7879
Given a height: returns hash of block in best-block-chain at height provided.
80+
Responds with 404 if block not found.
7981

8082
#### Chaininfos
8183
`GET /rest/chaininfo.json`

0 commit comments

Comments
 (0)