PHPackages                             squaresandbrackets/craft-status-code - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. squaresandbrackets/craft-status-code

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

squaresandbrackets/craft-status-code
====================================

Returns the HTTP status code within twig templates

1.0.2(8y ago)116MITPHP

Since Feb 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/MiMaMuh/craft-status-code)[ Packagist](https://packagist.org/packages/squaresandbrackets/craft-status-code)[ RSS](/packages/squaresandbrackets-craft-status-code/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Status Code plugin for Craft CMS 3.x
====================================

[](#status-code-plugin-for-craft-cms-3x)

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

[![Screenshot](resources/img/plugin-logo.png)](resources/img/plugin-logo.png)

Requirements
------------

[](#requirements)

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

Installation
------------

[](#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
-----------------------------------

[](#how-to-use-it-in-your-twig-template)

```
	{{ craft.getHttpStatus() }}

```

- Release it

Brought to you by [Squares And Brackets](http://squaresandbrackets.com)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Total

3

Last Release

2990d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/732872f2760c28e4504f83f61b7268504cd48f40ef11dd0ea0aec75237802be2?d=identicon)[mimamuh](/maintainers/mimamuh)

---

Top Contributors

[![mimamuh](https://avatars.githubusercontent.com/u/4332418?v=4)](https://github.com/mimamuh "mimamuh (6 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginstatus code

### Embed Badge

![Health badge](/badges/squaresandbrackets-craft-status-code/health.svg)

```
[![Health](https://phpackages.com/badges/squaresandbrackets-craft-status-code/health.svg)](https://phpackages.com/packages/squaresandbrackets-craft-status-code)
```

###  Alternatives

[lewisjenkins/craft-dynamic-fields

Populate Craft fields with dynamic data using the power of Twig.

14667.0k](/packages/lewisjenkins-craft-dynamic-fields)[nystudio107/craft-minify

A simple plugin that allows you to minify blocks of HTML, CSS, and JS inline in Craft CMS templates.

37461.2k29](/packages/nystudio107-craft-minify)[jalendport/craft-preparse

A fieldtype that parses Twig when an element is saved and saves the result as plain text.

1086.4k](/packages/jalendport-craft-preparse)[craftpulse/craft-colour-swatches

Let clients choose from a predefined set of colours and utilise associated colour codes and class names in your templates.

3530.8k2](/packages/craftpulse-craft-colour-swatches)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.3k](/packages/verbb-footnotes)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
