summaryrefslogtreecommitdiffhomepage
path: root/mullvad-api/src/lib.rs
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2022-05-11 16:18:10 +0200
committerDavid Lönnhager <david.l@mullvad.net>2022-05-11 17:37:43 +0200
commitd593dce00a0872a4e51bd95f193e667fa24b0810 (patch)
treef62bb05709d60d4aaf76f01daf8ec0f74b45e0d4 /mullvad-api/src/lib.rs
parentb47084be5bf38713d4016e138f5c513343c25d63 (diff)
downloadmullvadvpn-d593dce00a0872a4e51bd95f193e667fa24b0810.tar.xz
mullvadvpn-d593dce00a0872a4e51bd95f193e667fa24b0810.zip
Check status in API response body to determine whether a device has been revoked
Diffstat (limited to 'mullvad-api/src/lib.rs')
-rw-r--r--mullvad-api/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/mullvad-api/src/lib.rs b/mullvad-api/src/lib.rs
index 9c23fea6a7..714718814b 100644
--- a/mullvad-api/src/lib.rs
+++ b/mullvad-api/src/lib.rs
@@ -47,6 +47,9 @@ pub const INVALID_VOUCHER: &str = "INVALID_VOUCHER";
/// Error code returned by the Mullvad API if the account token is invalid.
pub const INVALID_ACCOUNT: &str = "INVALID_ACCOUNT";
+/// Error code returned by the Mullvad API if the device does not exist.
+pub const DEVICE_NOT_FOUND: &str = "DEVICE_NOT_FOUND";
+
/// Error code returned by the Mullvad API if the access token is invalid.
pub const INVALID_ACCESS_TOKEN: &str = "INVALID_ACCESS_TOKEN";