PHPackages                             mrcl/http-status-codes - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. mrcl/http-status-codes

ActiveLibrary[HTTP &amp; Networking](/categories/http)

mrcl/http-status-codes
======================

HTTP Status Codes library

1.0.1(4y ago)08MITPHPPHP &gt;=7.4

Since May 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/devmrcl/php-http-status-codes)[ Packagist](https://packagist.org/packages/mrcl/http-status-codes)[ RSS](/packages/mrcl-http-status-codes/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

HTTP Status Codes
=================

[](#http-status-codes)

PHP library containing all status codes and their corresponding messages listed in the [IANA registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml)plus [418 I'm a teapot](https://en.wikipedia.org/wiki/Hyper_Text_Coffee_Pot_Control_Protocol).

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

[](#installation)

```
composer require mrcl/http-status-codes

```

Usage
-----

[](#usage)

### HttpStatus

[](#httpstatus)

```
use Mrcl\Utils\InternetStandards\HttpStatus;
```

The `HttpStatus` class implements all status codes as constants

```
HttpStatus::OK        // 200
HttpStatus::NOT_FOUND // 404
```

Additionally, you can retrieve the corresponding status message

```
HttpStatus::MESSAGES[200]                   // 'OK'
HttpStatus::MESSAGES[HttpStatus::NOT_FOUND] // 'Not Found'
```

### Interfaces

[](#interfaces)

Every status category has its own interface containing the associated codes as constants

#### 1xx Informational

[](#1xx-informational)

```
use Mrcl\Utils\InternetStandards\HttpStatusCodes\Informational;

Informational::CONTINUE // 100
```

#### 2xx Success

[](#2xx-success)

```
use Mrcl\Utils\InternetStandards\HttpStatusCodes\Success;

Success::ACCEPTED // 202
```

#### 3xx Redirection

[](#3xx-redirection)

```
use Mrcl\Utils\InternetStandards\HttpStatusCodes\Redirection;

Redirection::MOVED_PERMANENTLY // 301
```

#### 4xx ClientError

[](#4xx-clienterror)

```
use Mrcl\Utils\InternetStandards\HttpStatusCodes\ClientError;

ClientError::BAD_REQUEST // 400
```

#### 5xx ServerError

[](#5xx-servererror)

```
use Mrcl\Utils\InternetStandards\HttpStatusCodes\ServerError;

ServerError::NETWORK_AUTHENTICATION_REQUIRED // 511
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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 ~4 days

Total

2

Last Release

1818d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f0afa073ac38d579328cc4fab8b93f051ce5d3c88b55300b0359f5e31ea2830?d=identicon)[mrcl](/maintainers/mrcl)

---

Top Contributors

[![devmrcl](https://avatars.githubusercontent.com/u/72648622?v=4)](https://github.com/devmrcl "devmrcl (2 commits)")

---

Tags

http statushttp-status-coderesponse code

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mrcl-http-status-codes/health.svg)

```
[![Health](https://phpackages.com/badges/mrcl-http-status-codes/health.svg)](https://phpackages.com/packages/mrcl-http-status-codes)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M317](/packages/friendsofsymfony-rest-bundle)[geocoder-php/common-http

Common files for HTTP based Geocoders

18722.1M64](/packages/geocoder-php-common-http)[illuminate/http

The Illuminate Http package.

11936.0M5.0k](/packages/illuminate-http)[laravel-lang/common

Easily connect the necessary language packs to the application

1463.1M21](/packages/laravel-lang-common)[codeception/module-phpbrowser

Codeception module for testing web application over HTTP

6529.8M500](/packages/codeception-module-phpbrowser)[ph-7/just-http-status-codes

Just all HTTP status codes

1447.7k4](/packages/ph-7-just-http-status-codes)

PHPackages © 2026

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