https://issues.dlang.org/show_bug.cgi?id=18318
Issue ID: 18318 Summary: std.net.curl.download silently ignores non-2xx http statuses Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority: P5 Component: phobos Assignee: nob...@puremagic.com Reporter: c...@dawg.eu cat > bug.d << CODE import std.net.curl; void main() { // get("dlang.org/non-existent-foobar"); // throws HTTPStatusException 404 download("dlang.org/non-existent-foobar", "tmp"); // silently writes 404 response, with no way to detect the error } CODE dmd -run bug --