new method to send a json response and to format unix timestamp into a http header format date time