I may be missing something here, but seems to me passing a string to res.status() is not supported in expressjs, only a status code. Perhaps a typo where res.send() was intended?
Current:
this.response_
.status(RESPONSE_CODE_BAD_REQUEST)
.status('No handler for requested intent');
Intended(?):
this.response_
.status(RESPONSE_CODE_BAD_REQUEST)
.send('No handler for requested intent');
I would further note that the dependency on response_.status() and response_.json() in this library does not make it compatible with standard nodejs, which does not include these helper functions.
I'd be willing to submit a PR switching to using the nodejs "native" properties (statusCode, statusMessage) if it would be helpful.
I may be missing something here, but seems to me passing a
string
tores.status()
is not supported in expressjs, only a status code. Perhaps a typo whereres.send()
was intended?Current:
Intended(?):
I would further note that the dependency on
response_.status()
andresponse_.json()
in this library does not make it compatible with standard nodejs, which does not include these helper functions.I'd be willing to submit a PR switching to using the nodejs "native" properties (
statusCode
,statusMessage
) if it would be helpful.