---
name: "FCGI_SetExitStatus"
section: "3"
platform: "linux"
package: "fcgi"
version: "2.4.7-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/FCGI_SetExitStatus"
---

# FCGI\_SetExitStatus(3)

NAME\
      FCGI\_SetExitStatus - fcgi\_stdio compatibility library

SYNOPSIS\
      \#include "fcgi\_stdio.h"

     void\
      FCGI\_SetExitStatus(int status);

DESCRIPTION\
      Sets the exit status for the current FastCGI request.\
      The exit status is the status code the request would have\
      exited with, had the request been run as a CGI program.

     You can call FCGI\_SetExitStatus several times during a request;\
      the last call before the request ends determines the value.

SEE ALSO\
      [FCGI\_Accept(3)](/FCGI_Accept/3.md)\
      [FCGI\_StartFilterData(3)](/FCGI_StartFilterData/3.md)\
      [cgi-fcgi(1)](/cgi-fcgi/1.md)

HISTORY\
      Copyright (c) 1996 Open Market, Inc.\
      See the file "LICENSE" for information on usage and redistribution\
      of this file, and for a DISCLAIMER OF ALL WARRANTIES.\
      $Id: FCGI\_SetExitStatus.3,v 1.1.1.1 1997/09/16 15:36:25 stanleyg Exp $
