2018-02-05 02:19:16 +01:00
|
|
|
/* lightningd/jsonrpc_errors.h
|
|
|
|
* Lists error codes for JSON-RPC.
|
|
|
|
*/
|
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_JSONRPC_ERRORS_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_JSONRPC_ERRORS_H
|
|
|
|
#include "config.h"
|
|
|
|
|
2018-02-08 22:49:35 +01:00
|
|
|
/* Standard errors defined by JSON-RPC 2.0 standard */
|
2018-02-05 02:19:16 +01:00
|
|
|
#define JSONRPC2_INVALID_REQUEST -32600
|
|
|
|
#define JSONRPC2_METHOD_NOT_FOUND -32601
|
|
|
|
#define JSONRPC2_INVALID_PARAMS -32602
|
|
|
|
|
2018-03-04 06:35:37 +01:00
|
|
|
/* Errors from `pay`, `sendpay`, or `waitsendpay` commands */
|
2018-02-03 12:46:12 +01:00
|
|
|
#define PAY_IN_PROGRESS 200
|
|
|
|
#define PAY_RHASH_ALREADY_USED 201
|
|
|
|
#define PAY_UNPARSEABLE_ONION 202
|
|
|
|
#define PAY_DESTINATION_PERM_FAIL 203
|
|
|
|
#define PAY_TRY_OTHER_ROUTE 204
|
|
|
|
#define PAY_ROUTE_NOT_FOUND 205
|
|
|
|
#define PAY_ROUTE_TOO_EXPENSIVE 206
|
2018-02-17 08:34:31 +01:00
|
|
|
#define PAY_INVOICE_EXPIRED 207
|
2018-03-04 06:35:37 +01:00
|
|
|
#define PAY_NO_SUCH_PAYMENT 208
|
|
|
|
#define PAY_UNSPECIFIED_ERROR 209
|
2018-03-11 15:30:34 +01:00
|
|
|
#define PAY_STOPPED_RETRYING 210
|
2018-02-03 12:46:12 +01:00
|
|
|
|
2018-03-22 11:36:25 +01:00
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_JSONRPC_ERRORS_H */
|