Improve coverage

any chance to have an err.statusCode?