Improve JSON responses from server

This commit is contained in:
Francis Lachapelle
2015-12-09 09:44:33 -05:00
parent 38e5588c67
commit 5e978940f9
3 changed files with 17 additions and 11 deletions
+2 -2
View File
@@ -2180,12 +2180,12 @@ static NSArray *reminderValues = nil;
if (![account updateFilters])
{
results = (id <WOActionResults>) [self responseWithStatus: 502
andJSONRepresentation: [NSDictionary dictionaryWithObjectsAndKeys: @"Connection error", @"textStatus", nil]];
andJSONRepresentation: [NSDictionary dictionaryWithObjectsAndKeys: @"Connection error", @"message", nil]];
}
}
else
results = (id <WOActionResults>) [self responseWithStatus: 503
andJSONRepresentation: [NSDictionary dictionaryWithObjectsAndKeys: @"Service temporarily unavailable", @"textStatus", nil]];
andJSONRepresentation: [NSDictionary dictionaryWithObjectsAndKeys: @"Service temporarily unavailable", @"message", nil]];
}
}