Implementation of the http response