Class: Responder

Defined in: src/responder.coffee

Direct Known Subclasses

JsendResponder

Instance Method Summary

Instance Method Details

- (void) success(req, res, data)

All went well, and (usually) some data is returned.

- (void) fail(req, res, errors)

There was a problem with the data submitted, or some pre-condition of the API call wasn't satisfied API returns errors to be reported.

- (void) error(req, res, error)

An error occurred in processing the request, i.e. an exception was thrown.