{"id":17077744,"url":"https://github.com/torokmark/response_code","last_synced_at":"2025-07-15T23:46:01.481Z","repository":{"id":56891951,"uuid":"131830805","full_name":"torokmark/response_code","owner":"torokmark","description":"Response Code in readable way.","archived":false,"fork":false,"pushed_at":"2020-05-31T14:23:04.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T18:12:23.356Z","etag":null,"topics":["http","response-code","status-codes"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/torokmark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-02T09:47:25.000Z","updated_at":"2020-05-31T14:23:07.000Z","dependencies_parsed_at":"2022-08-21T00:50:58.566Z","dependency_job_id":null,"html_url":"https://github.com/torokmark/response_code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torokmark%2Fresponse_code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torokmark%2Fresponse_code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torokmark%2Fresponse_code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torokmark%2Fresponse_code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torokmark","download_url":"https://codeload.github.com/torokmark/response_code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248626736,"owners_count":21135721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","response-code","status-codes"],"created_at":"2024-10-14T12:16:36.478Z","updated_at":"2025-04-12T20:23:34.932Z","avatar_url":"https://github.com/torokmark.png","language":"Ruby","readme":"# ResponseCode\n\n[![Build Status](https://travis-ci.org/torokmark/response_code.svg?branch=master)](https://travis-ci.org/torokmark/response_code)\n[![Gem Version](https://badge.fury.io/rb/response_code.svg)](https://badge.fury.io/rb/response_code)\n\nWho knows which response code represents the partial content? Or what code belongs to the error that says the request uri too long? Do you know the status code of the teapot?\n\nResponseCode is a tiny tool intended to give a handy way of handling response status codes with text instead of numbers.\n\n### Install\n\n```ruby\ngem install response_code\n```\n\nor\n\n```ruby\ngem 'response_code'\n```\n\n### Usage\n\n```ruby\nrequire 'response_code'\n\nputs ResponseCode.ok\n# =\u003e 200\n```\n\nUsing sinatra\n\n```ruby\n#!/usr/bin/env ruby \n\nrequire 'sinatra'\nrequire 'response_code'\n\nget('/') {\n  status ResponseCode.im_a_teapot\n  'I\\'m a teapot!' \n}\n```\n\nExecuting `curl -i localhost:4567`\n\n```\nHTTP/1.1 418  \nContent-Type: text/html;charset=utf-8\nContent-Length: 13\nX-Xss-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\nX-Frame-Options: SAMEORIGIN\nServer: WEBrick/1.4.2 (Ruby/2.5.0/2017-12-25)\nDate: Thu, 03 May 2018 18:24:12 GMT\nConnection: Keep-Alive\n\nI'm a teapot!\n```\n","funding_links":[],"categories":["Gems","HTTP"],"sub_categories":["Misc"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorokmark%2Fresponse_code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorokmark%2Fresponse_code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorokmark%2Fresponse_code/lists"}