Project

http_codes

0.0
No commit activity in last 3 years
No release in over 3 years
Provides a easy and fast way to find http codes by number or description.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

Http_Codes Build Status

Description

The idea behind this project is to have HTTP codes as a searchable list in your code or usable in pry instead of going to Wikipedia and search for codes. In the end, its all about saving you some clicks.

The source for the codes is Internet Assigned Numbers Authority.

Usage

Install at the command line,

$ gem install http_codes

include in your project gemfile,

gem 'http_codes'

or require in directly in pry

require 'http_codes'

Once installed, you can run from the command line.

$ http_codes desc/code val

Search by description 'BAD' will return a list of the codes that contain the value 'BAD':

$ http_codes desc BAD
400 - BAD REQUEST
502 - BAD GATEWAY

Search by code number 100 will return the description that matches that code:

$ http_codes code 100
100 - CONTINUE

For usage inside a Ruby project, refer to the file usage_example.rb