Keep the status code generate by connect in case of error.

The status code generate by connect/express in case of error was always
replace by 500 status.
Merge pull request #1204 from Gotvitch/error-code

Keep the status code generate by connect in case of error.