C API Reference -- Ns_ConnReturnStatus

### Ns_ConnReturnStatus

#### Overview

Return a status message to a client

#### Syntax

        int Ns_ConnReturnStatus(
        Ns_Conn *conn,
        int status
        );

#### Description

The Ns_ConnReturnStatus function calls Ns_ConnSetRequiredHeaders with the given status and reason and then immediately calls Ns_ConnFlushHeaders. It can be used when only the status of the request must be returned to the client.

The status is a standard error code such as 403 for access denied or 200 for OK. Returns NS_OK or NS_ERROR.

Top of Page
Copyright © 1998-99 America Online, Inc.