sendError method

void sendError (RequestContext req, ResponseContext res, dynamic error)