error_response

Function error_response 

Source
pub fn error_response(code: u16, message: &str) -> String
Expand 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");