diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 392be102..dbedce51 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -1055,7 +1055,13 @@ void ServiceConnection(AcceptedConnection *conn) conn->stream() << HTTPReply(HTTP_OK, str, false, contentType) << std::flush; } else { printf("ServiceConnection: file %s not found\n", fname.c_str()); - conn->stream() << HTTPReply(HTTP_NOT_FOUND, "", false) << std::flush; + + ostringstream s; + s << "
\r\n" + << "ERROR 404