write the compat layer from v2 to v3

This commit is contained in:
Tamo 2022-10-10 14:32:11 +02:00 committed by Clément Renault
parent 6107540ad4
commit 06fadb3004
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
19 changed files with 1737 additions and 36 deletions

View file

@ -155,6 +155,7 @@ pub enum Code {
InvalidApiKeyDescription,
UnretrievableErrorCode,
MalformedDump,
}
impl Code {
@ -267,6 +268,7 @@ impl Code {
UnretrievableErrorCode => {
ErrCode::invalid("unretrievable_error_code", StatusCode::BAD_REQUEST)
}
MalformedDump => ErrCode::invalid("malformed_dump", StatusCode::BAD_REQUEST),
}
}