Set response code before calling finish_request.

This behaviour was changed in commit 37f4ed3.
Merge pull request #93 from bernd/set-code-before-finish_request

Set response code before calling finish_request.