pub fn error_response_for_accept(accept: Option<&str>, err: Error) -> Response
Map Error using Accept (or current_accept when accept is None).
Error
Accept
current_accept
accept
None