setting the content type on server error responses

without this they are returned as application/octet-stream which
won't be rendered as html by most modern browsers.
Merge pull request #417 from tempredirect/bugs/server_error_content_type

setting the content type on server error responses