The OpenD Programming Language

Cgi.setResponseStatus

Sets the HTTP status of the response. For example, "404 File Not Found" or "500 Internal Server Error". It assumes "200 OK", and automatically changes to "302 Found" if you call setResponseLocation(). Note setResponseStatus() must be called *before* you write() any data to the output.

  1. void setResponseStatus(string status)
  2. void setResponseStatus(int statusCode)
    class Cgi
    void
    setResponseStatus

Meta

History

The int overload was added on January 11, 2021.