➜ Alby http POST localhost:3000/v2/payments/keysend < keysend.json Authorization:"Bearer $token"
HTTP/1.1 400 Bad Request
Content-Length: 110
Content-Type: application/json; charset=UTF-8
Date: Mon, 09 Jan 2023 14:02:42 GMT
X-Request-Id: vddq9Yq3JPt5gYj5QSGk91cpcL4NYWye
{
"code": 8,
"error": true,
"message": "Internal keysend payments require the custom record 696969 to be present."
}
Other endpoints can also be updated to use the status code from ErrorResponse to improve the accuracy of the http status code returned. However this should be for another PR.
Fixes #270 Tested locally.
Other endpoints can also be updated to use the status code from
ErrorResponse
to improve the accuracy of the http status code returned. However this should be for another PR.