Added handling of validation errors in PUT-as-create.

Fixes #1035.
Merge pull request #1240 from KrzysiekJ/put-as-create

Added handling of validation errors in PUT-as-create.