Error format for REST web services

Successful creations usually return a 201 Created response, along with
a Location header with the permalink of the new resource. Validation
errors return 400 Client Error, with an xml hash of the errors. This
is according to ActiveResource anyway. I think the Atom Pub API is
similar, yet it actually sends the new xml with a successful create,
along with the Location header.