rest.cpp: change HTTP_INTERNAL_SERVER_ERROR to HTTP_BAD_REQUEST

This commit is contained in:
djpnewton
2016-09-01 11:52:47 +12:00
committed by Daniel Newton
parent 84decb54f2
commit f012a857f5
3 changed files with 16 additions and 12 deletions

View File

@@ -59,6 +59,10 @@ git merge commit are mentioned.
### RPC and REST
UTXO set query (`GET /rest/getutxos/<checkmempool>/<txid>-<n>/<txid>-<n>/.../<txid>-<n>.<bin|hex|json>`) responses
were changed to return status code HTTP_BAD_REQUEST (400) instead of HTTP_INTERNAL_SERVER_ERROR (500) when requests
contain invalid parameters.
### Configuration and command-line options
### Block and transaction handling