Add docs for error_code