Created a macro to specialize http_response in order to avoid
repetitions in code