Adds better error reporting to PUT operations