RESTful HTTP responses with Perl (or, how I learned to stop worrying and love RFC2616)
The HTTP RFC gives fantastic detail about how responses from a RESTful application should instruct a conforming user-agent to behave, and about the contexts in which different responses are appropriate. Yet many HTTP applications seem to know little more than "200 OK".
We can improve on this situation by encapsulating some of the logic embodied in the HTTP 1.1 RFC. The rationale being that the developer can think in terms closer to his application domain and a little further away from the underlying protocol, but while still being able to develop highly REST-compliant web APIs.