add response code to error view reply

Fixes #85.