[Rt-devel] REST: differentiating errors by RT status.

Dmitri Tikhonov dtikhonov at vonage.com
Fri Jul 28 09:31:40 EDT 2006

Dear fellow RTers,

I think that server-side REST code should indicate success or failure of
operation by utilizing "RT code".  For example, fetching a ticket that
does not exist returns the following:

   RT/3.4.5 200 Ok

   # Ticket 4 does not exist.

Maybe it should return

   RT/3.4.5 404 Not Found

   # Ticket 4 does not exist.

So that the client can just *know* that something's amiss by looking at the
RT code (easy) instead of parsing output for things like m/does not exist/


  - Dmitri.

More information about the Rt-devel mailing list