Add response middleware