[standards-jig] JEP-0060 Pub/Sub, error conditions

Ralph Meijer jabber.org at ralphm.ik.nu
Sat May 3 11:47:52 UTC 2003


Hi,

While implementing JEP-0060, I came across some oddities in the errors
that are to be returned.

In 6.1.1 (Create a new node) a service must respond with 405 Not Allowed when
it does not support creating nodes. Isn't it more logical to reply with 501 Not
Implemented (e.g. for a specialised service which has preconfigured nodes)?

For subscribing and/or unsubscribing: if that is not supported, should
it send back a 501 Not Implemented? Actually this goes for deleting
items, deleting nodes, 

For deleting and purging nodes I think a 401 is more appropriate for when the
requesting entity is not an owner (6.2.2 and 6.2.3), 405 for when the node
isn't persistent and purging is requested and 501 when deleting/purging is not
implemented.

For modifying entity affiliations (6.2.4) a 401 is probably more appropriate
than 405.

As mentioned in the error table, a 405 might be more appropriate if the
system does implement features, but the admin has them disabled.

-- 
Groetjes,

Ralphm



More information about the Standards mailing list