set correct header to response from JsonHandler