rest.cpp: change HTTP_INTERNAL_SERVER_ERROR to HTTP_BAD_REQUEST

This commit is contained in:
djpnewton authored and Daniel Newton committed 2016-09-01 22:12:19 +12:00
1 parent 84decb54f2
commit f012a857f5
3 files changed
+16 -12

No files matched your search

+4
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