Cryptic error thrown when missing 'return' in verb method #286

wolfphantom opened this Issue Jul 21, 2015 · 1 comment


None yet

2 participants


{ "ERROR": "Element STATUSARGS.STATUSCODE is undefined in _TAFFYREQUEST.", "TAGCONTEXT": "C:\\ColdFusion11\\cfusion\\taffy\\core\\api.cfc [Line 343]", "DETAIL": "", "STACKTRACE": [ { "RAW_TRACE": "\tat cfapi2ecfc1594627821$funcONREQUEST.runFunction(C:\\ColdFusion11\\cfusion\\taffy\\core\\api.cfc:343)", "LINE": 343, "COLUMN": 0, "TEMPLATE": "C:\\ColdFusion11\\cfusion\\taffy\\core\\api.cfc", "ID": "CF_DOTRESOLVER", "TYPE": "CFML" } ] }

Returned from post() method:
function post() { rep(["New Student Created"]).withStatus(201, "Student Created"); }

post() missing the return keyword

atuttle commented Jul 21, 2015

We should check this and make sure the resource is returning something. When it's not, we should throw something like "Your resource must return something, even if it's an empty response."

@atuttle atuttle added this to the Taffy 3.1 milestone Jul 21, 2015
@atuttle atuttle closed this in 60b93fc Sep 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment