kusor/node-workflow — Issue #54: Backend Error objects
Author: kusor
Created: 2012-03-02 12:21:18+00:00
State: open

Error objects to be used by in-memory, redis and postgreSQL backends, and translated by Workflow API into proper Restify Errors.

- Unique wf name (409)
- Wf does not exist (404)
- Job does not exist (404)
- Duplicated job target (409)
- Only queued jobs can run (412)
- Only running (or canceled) jobs can be finished (412)
- Runner does not exist (404)
- Job Execution is required and must be one of ... (409)
- Whatever else => Backend Internal Error (500).