Added one more error case to the put