naggie / megafilter

2013: Single-user Google RSS Reader alternative, with RESTful API
http://callanbryant.co.uk/#Blog/introducing_megafilter.md
Apache License 2.0
60 stars 6 forks source link

switch fro, HTTP API errors #33

Open naggie opened 11 years ago

naggie commented 11 years ago

just return an empty set or something so that errors actually mean something unique

naggie commented 11 years ago

because a broken network connection is indistinguishable from an empty queue.

Another solution would be to look at the error

naggie commented 11 years ago

use error classes from restify, passed to next()

naggie commented 11 years ago

also publishing an item that is already published is indistinguishable from not found or any other error