Define an HttpError for returning error contents
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 26 May 2021 17:51:16 +0000 (10:51 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 26 May 2021 17:51:16 +0000 (10:51 -0700)
commit61648fc804dbb22147a239223c2483967c4c8e62
treefd16febc4ce4b34e76a95f79eea1cab32b912c6b
parentf8450a7c2cd6d31b0691e771c1b36ea857c26c2a
Define an HttpError for returning error contents

Return an HTTP error response as a status code and contents. This allows
clients to interpret the response as desired (e.g., the contents as a
JSON-formatted error).
lightning-block-sync/src/http.rs