daemon/http: HTTP response codes
All threads resolved!
All threads resolved!
Compare changes
Self sign-up has been disabled due to increased spam activity. If you want to get access, please send an email to a project owner (preferred) or at gitlab(at)nic(dot)cz. We apologize for the inconvenience.
Fixes #728 (closed)
Related #618 (closed)
Currently:
400
when a GET
query has no DNS query in it (the basic case in #728 (closed))404
when querying unknown endpoints (anything other than /doh
or /dns-query
)431
when a header is too largeTo do:
400
when the POST
body is malformed (but only if DNS itself cannot deal with it, then it is 200
as per RFC 8484)413
when the POST
body is too long (attempted but not working at the moment)400
)414
when the GET
URL is too long400
)http_send_response
on error does not cause any problems