PHPackages                             webignition/is-http-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. webignition/is-http-status-code

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webignition/is-http-status-code
===============================

DSimple small library to check if a given number is an HTTP status code

0.2(13y ago)12.6kMITPHPPHP &gt;=5.3.0

Since Mar 14Pushed 13y ago1 watchersCompare

[ Source](https://github.com/webignition/is-http-status-code)[ Packagist](https://packagist.org/packages/webignition/is-http-status-code)[ Docs](https://github.com/webignition/is-http-status-code)[ RSS](/packages/webignition-is-http-status-code/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

is-http-status-code
===================

[](#is-http-status-code)

Simple small library to check if a given number is an HTTP status code.

Ever found yourself facing a number in your code and wondering whether it's a HTTP status code?

Problem solved!

### The "Hello World" example

[](#the-hello-world-example)

```
