Improve HTTP404 error message

This commit is contained in:
Ming Ming 2021-10-07 00:56:43 +08:00
parent 4b590e85ba
commit fabee4a139

View file

@ -10,6 +10,8 @@ String toUserString(dynamic exception) {
if (exception is ApiException) {
if (exception.response.statusCode == 401) {
return L10n.global().errorUnauthenticated;
} else if (exception.response.statusCode == 404) {
return "404 not found";
} else if (exception.response.statusCode == 423) {
return L10n.global().errorLocked;
} else if (exception.response.statusCode == 500) {