Exxtract the exception message from reply to PUT

Might be usefull to debug Internal Server Error

Fixes #1366