set prefix correctly & display HTTP response code