cfchris/Relaxation — pull request #16 by cfchris (2014-04-27 02:31:31+00:00)
Title: Basic auth

Refactored some HTTP methods out into an HTTPUtil CFC. Added a method to get the basic auth credentials back as a struct of user/password.

Added another example directory that will prompt for basic auth before allowing any API requests.

Accidentally (got sloppy) added support for 403 and 404 in this same feature branch.

To get a 403 throw an error with errorcode "NotAuthorized" in a method that is mapped to a resource. And to get a 404 throw an error with errorcode "ResourceNotFound".