1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-08-06 17:40:59 +00:00

feat(appservice): pinging

This commit is contained in:
Matthias Ahouansou 2025-03-08 11:26:17 +00:00
parent b726ccaab8
commit dc5abd6f3b
No known key found for this signature in database
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,
},
),