Page MenuHomePhabricator

httpserver: use own HTTP status codes
ClosedPublic

Authored by PiRK on Jan 4 2021, 18:44.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC5ecb5c979f9d: httpserver: use own HTTP status codes
Summary

Before, macros defined in <event2/http.h> have been used
for some HTTP status codes.
<event2/http.h> is included implicitly and the usage
of its status code macros is inconsistent with the majority
HTTP response implementations in this file.

Now, the HTTPStatusCode enum from <rpc/protocol.h> is
consistently used for all HTTP response implementations.

This is a backport of Core PR18168

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable