HTTP response

Finished implementing the function to construct the HTTP response