pub fn error_response(code: u16, message: &str) -> StringExpand description
Construct a generic error response with custom code and message
ยงExamples
use nntp_proxy::protocol::error_response;
let msg = error_response(430, "No such article");
assert_eq!(msg, "430 No such article\r\n");