feat(appservice): pinging

This commit is contained in:
Matthias Ahouansou
2025-03-08 11:26:17 +00:00
parent b726ccaab8
commit dc5abd6f3b
4 changed files with 85 additions and 0 deletions

View File

@@ -122,6 +122,8 @@ impl Error {
LimitExceeded { .. } => StatusCode::TOO_MANY_REQUESTS,
UserDeactivated => StatusCode::FORBIDDEN,
TooLarge => StatusCode::PAYLOAD_TOO_LARGE,
ConnectionTimeout => StatusCode::GATEWAY_TIMEOUT,
BadStatus { .. } | ConnectionFailed => StatusCode::BAD_GATEWAY,
_ => StatusCode::BAD_REQUEST,
},
),