Update dynamic_proxy.js

Added error message in put route