Complete the web response handler class, all modes are supported now