ZEN-8688: Set status BEFORE beginning to write response body.
Merge pull request #66 from zenoss/feature/ZEN-8688

Reviewed by Summer.