Use apply rather than reduce to concatenate strings
Separate out request and failure response handling for compatiblility with pedestal-service