send back proper http headers