atuttle/Taffy — Issue #71: withStatus(401, "You Are Unathorized")
Author: chair9design
Created: 2012-01-20 17:08:58+00:00
State: open

Enhancement - Not sure if it's bad practice to customize the status text, but I was reading the "So you want to..." page of the wiki and came across the your example of -- .withStatus(405, "Method Not Allowed") --- and thought that this meant we could provide a custom status text but after looking at the baseRepresentation.cfc withStatus() method and checking the API methods index it only accepts the single parameter of the status code.

For now I'm simply returning a custom message in my response, but didn't know if this would make sense to implement in a future revisions, unless this is bad practice, to provide the service consumer with added information without having to parse the response for a custom message as to why their request was unauthorized, etc...

Taffy is an amazing framework and is is saving my life right now. I love the jQuery-like chain-ability of your methods. Thank you so much for making this available.