gayle/peanut_butter — Issue #3: HTTP response codes
Author: leongersing
Created: 2011-11-03 20:06:37+00:00
State: open

Hi Gayle,

The app currently returns a 200 for every request regardless of what I send.

Challenge: Send relevant HTTP status codes back for scenarios when errors, exceptions and unexpected input are encountered. For instance, if no filter params are sent to /, let me know the nature of the failure with a code as well as the message. I don't need an user interface to verify the response packets, unit tests showing the expectations would be just dandy-tastic. :) Thanks!

Leon