return triplet for handling error and reponse

Signed-off-by: Adam Stokes <hackr@cypherbook.com>