Allow json_handler to return a different status code

Sometimes you don't want `200 OK`.