Adding http_response_code support