Skip to content

FictionResponse[]

Default response array containing HTTP server response option

KeyDescriptionTypeDefault valueChangeable
statusHTTP status code to respondint200true
headersarray name containing response headersarrayFictionResponseHeaderstrue*
cookiearray name containing response cookiesarrayFictionResponseCookietrue*
metaitems that should be added to <meta> (HTML response only)string$FICTION_METAtrue

* while following key is changeable, it’s not recommended to change it because it can cause issues and change server’s behavior