diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-10-04 10:43:40 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-10-04 15:49:15 +0200 |
commit | 285746d3dbed46d0e444d7a907c08453d36d99cd (patch) | |
tree | bb49c9ccf3d0d6b64f5d0fc62937b5a1472a1ac7 /src/bitcoinrpc.h | |
parent | 738835d7b8ab80bd0812805f197471c54c72d7f9 (diff) |
Add constants for HTTP status codes
Diffstat (limited to 'src/bitcoinrpc.h')
-rw-r--r-- | src/bitcoinrpc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bitcoinrpc.h b/src/bitcoinrpc.h index 8154f3242c..89ab976f56 100644 --- a/src/bitcoinrpc.h +++ b/src/bitcoinrpc.h @@ -18,6 +18,17 @@ class CBlockIndex; #include "util.h" +// HTTP status codes +enum HTTPStatusCode +{ + HTTP_OK = 200, + HTTP_BAD_REQUEST = 400, + HTTP_UNAUTHORIZED = 401, + HTTP_FORBIDDEN = 403, + HTTP_NOT_FOUND = 404, + HTTP_INTERNAL_SERVER_ERROR = 500, +}; + // Bitcoin RPC error codes enum RPCErrorCode { |