Added proper support for put to return the status
added comment