Allow handlers to return a status code

Adds support for optionally returning a status code with the response from a handler, which hopefully fixes #65.

Given that you were supporting `len(vals) > 0` before, I wasn't sure if you wanted to do something special if `len(vals) > 1` but `vals[0]` is not an integer, so I just left it simple.