Skip to content

Instantly share code, notes, and snippets.

View benzheren's full-sized avatar

Zheren (Ben) Hu benzheren

View GitHub Profile
#!/usr/bin/env /usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby
CODES = {
'400' => 'Bad Request',
'401' => 'Unauthorized',
'403' => 'Forbidden',
'404' => 'Not Found',
'405' => 'Method Not Allowed',
'406' => 'Not Acceptable',
'408' => 'Request Timeout',