{"id":21892943,"url":"https://github.com/ahf/cowboy_error_noise","last_synced_at":"2025-03-22T03:40:18.289Z","repository":{"id":22239543,"uuid":"25572844","full_name":"ahf/cowboy_error_noise","owner":"ahf","description":"Add error noise to your Cowboy project.","archived":false,"fork":false,"pushed_at":"2018-02-16T01:03:15.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T00:53:44.557Z","etag":null,"topics":["cowboy","erlang"],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahf.png","metadata":{"files":{"readme":"README.markdown","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":"2014-10-22T09:21:38.000Z","updated_at":"2018-02-12T03:57:55.000Z","dependencies_parsed_at":"2022-08-21T00:30:23.421Z","dependency_job_id":null,"html_url":"https://github.com/ahf/cowboy_error_noise","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/ahf%2Fcowboy_error_noise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahf%2Fcowboy_error_noise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahf%2Fcowboy_error_noise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahf%2Fcowboy_error_noise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahf","download_url":"https://codeload.github.com/ahf/cowboy_error_noise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244902929,"owners_count":20529114,"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":["cowboy","erlang"],"created_at":"2024-11-28T13:00:03.959Z","updated_at":"2025-03-22T03:40:18.255Z","avatar_url":"https://github.com/ahf.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"Cowboy Error Noise\n==================\n\nThis [Cowboy](https://github.com/ninenines/cowboy) middleware allows you to add\nrandom failure into your API which forces your client's to handle API errors\nmore gracefully.\n\nHave a look at the example in the [examples/](examples/) directory.\n\n## Configuring\n\nAdd `cowboy_error_noise_middleware` to your `middlewares` configuration for cowboy.\n\n### Example Configuration\n\n    {ok, _} = cowboy:start_http(noisy_api_http, 1000, [{port, 10000}], [\n        {env, [\n            {dispatch, Dispatch},\n\n            %% API Noise.\n            {noise_error_percent, 33.333},\n            {noise_error_code, 503},\n            {noise_error_body, \u003c\u003c\"Ugh! You should see this message 1/3 of the time.\"\u003e\u003e},\n            {noise_error_content_type, \u003c\u003c\"text/plain; charset=utf-8\"\u003e\u003e}\n        ]},\n\n        {middlewares, [cowboy_error_noise_middleware, cowboy_router, cowboy_handler]}\n    ]),\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahf%2Fcowboy_error_noise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahf%2Fcowboy_error_noise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahf%2Fcowboy_error_noise/lists"}