fix status code in doc

Fixes #1076