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