rochecompaan/rhaptos.atompub.plone — comment on commit 95ca05c706487df1c53eb821c17d734c2abdd773
File:  line 0
By rochecompaan:

The AtomPub spec doesn't have the notion of an error document. All it says about errors is "The Atom Protocol uses the response status codes defined in HTTP to indicate the success or failure of an operation. Consult the HTTP specification [RFC2616] for detailed definitions of each status code. Implementers are asked to note that according to the HTTP specification, HTTP 4xx and 5xx response entities SHOULD include a human-readable explanation of the error." Given what the spec says I don't an error document as with SWORD is correct here. AtomPub also doesn't support error, treatment and verboseDescription tags. It's probably easier to just add a simple human-readable explanation of the error like the spec suggests.