pub fn generic_error(error_type: ProtocolErrorType) -> ProtocolError
Expand description
Creates a generic ProtocolError
using the HTTP status code
description (i.e. “Bad Request” or “Not Found”) as the error text.
pub fn generic_error(error_type: ProtocolErrorType) -> ProtocolError
Creates a generic ProtocolError
using the HTTP status code
description (i.e. “Bad Request” or “Not Found”) as the error text.