mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-16 18:47:28 -05:00
Handle a few more errors and update a few packages
This commit is contained in:
@@ -356,6 +356,9 @@ public partial class Feed : RealmObject, INotifyDataErrorInfo
|
||||
{
|
||||
switch (httpRequestException.StatusCode)
|
||||
{
|
||||
case HttpStatusCode.TooManyRequests:
|
||||
return Tuple.Create(FeedReadResult.TooManyRequests, string.Empty);
|
||||
|
||||
case HttpStatusCode.ServiceUnavailable:
|
||||
return Tuple.Create(FeedReadResult.TemporarilyUnavailable, string.Empty);
|
||||
|
||||
|
||||
@@ -15,5 +15,6 @@ public enum FeedReadResult
|
||||
ConnectionFailed,
|
||||
ServerError,
|
||||
Moved,
|
||||
TemporarilyUnavailable
|
||||
TemporarilyUnavailable,
|
||||
TooManyRequests
|
||||
}
|
||||
Reference in New Issue
Block a user