use actix_web::{HttpResponse, Responder};
pub async fn page_not_found() -> impl Responder {
HttpResponse::NotFound()
.content_type("text/plain; charset=utf-8")
.body(
r#"
╭───────────────╮
│ Pipey 🟢 │
╰───────────────╯
❌ ERROR 404
╭───────────────────────────────╮
│ This endpoint isn't connected │
│ to any pipe. │
╰───────────────────────────────╯
HTTP ─────╮
│
✖
│
WebSocket ─╯
Keep calm and keep piping.
"#,
)
}