Added error responses for the put request