added statusCode to error objects. addresses #47