squaresandbrackets/craft-status-code

Returns the HTTP status code within twig templates

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:craft-plugin

pkg:composer/squaresandbrackets/craft-status-code

1.0.2 2018-03-07 15:00 UTC

This package is not auto-updated.

Last update: 2025-10-16 05:25:01 UTC


README

Returns the HTTP status code within twig templates by simply calling craft.getHttpStatus(),

Screenshot

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require squaresandbrackets/craft-status-code
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Status Code.

How to use it in your twig template

	{{ craft.getHttpStatus() }}
  • Release it

Brought to you by Squares And Brackets