{"_id":"@bbc/http-transport-to-error","_rev":"136-cc9cf14dc4172bb07bf2a6dac067c501","name":"@bbc/http-transport-to-error","dist-tags":{"latest":"2.2.2"},"versions":{"0.0.1":{"name":"@bbc/http-transport-to-error","version":"0.0.1","license":"Apache-2.0","_id":"@bbc/http-transport-to-error@0.0.1","maintainers":[{"name":"ibl","email":"ibl-team@lists.forge.bbc.co.uk"}],"homepage":"https://github.com/bbc/http-transport-to-error","bugs":{"url":"https://github.com/bbc/http-transport-to-error/issues"},"dist":{"shasum":"72f31394048921981676125768d1fcc9e3bb11e8","tarball":"https://registry.npmjs.org/@bbc/http-transport-to-error/-/http-transport-to-error-0.0.1.tgz","integrity":"sha512-ax8m2f3Kr/ofvnqgaAMauW3090/KlLmKM0NwhjqzK/BeceltDa80nKeflHikpo/GqlPClt2glh1D8xYxO2UGlw==","signatures":[{"sig":"MEQCIFQKFQYVZ0sBzUxZObd7vWS0d2F6OmxiUszE0wMH7zI/AiAUoeyaMFSsVpfNUpe/Q+yZxPTUr6Awvuv2mp0OwErdhQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"72f31394048921981676125768d1fcc9e3bb11e8","engines":{"node":">=4.0.0"},"gitHead":"827e4627ef3c857b179a1c1332dc1abc1a8a35f3","scripts":{"lint":"eslint .","test":"mocha","coverage":"istanbul cover _mocha -- -R dot"},"_npmUser":{"name":"ibl","email":"ibl-team@lists.forge.bbc.co.uk"},"repository":{"url":"git+https://github.com/bbc/http-transport-to-error.git","type":"git"},"_npmVersion":"2.14.12","description":"Converts 4XX and 5XX responses to errors","directories":{},"_nodeVersion":"4.2.4","eslintConfig":{"extends":"iplayer-es6"},"devDependencies":{"chai":"^3.5.0","nock":"^9.0.4","jsdoc":"^3.4.3","mocha":"^3.0.2","sinon":"^1.15.3","eslint":"^3.11.1","lodash":"^4.17.4","istanbul":"^0.4.2","coveralls":"^2.11.9","@bbc/http-transport":"0.0.1","codeclimate-test-reporter":"^0.4.0","eslint-config-iplayer-es6":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/http-transport-to-error-0.0.1.tgz_1504616932045_0.7383093335665762","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@bbc/http-transport-to-error","version":"0.0.2","license":"Apache-2.0","_id":"@bbc/http-transport-to-error@0.0.2","maintainers":[{"name":"jontyusborne","email":"jonty.usborne@bbc.co.uk"},{"name":"nspragg","email":"nick.spragg@bbc.co.uk"},{"name":"zya","email":"ehsan.ziya@gmail.com"},{"name":"cejast","email":"cem.staveley@bbc.co.uk"},{"name":"niklasr","email":"nik.rahmel@bbc.co.uk"},{"name":"ibl","email":"ibl-team@lists.forge.bbc.co.uk"}],"homepage":"https://github.com/bbc/http-transport-to-error","bugs":{"url":"https://github.com/bbc/http-transport-to-error/issues"},"dist":{"shasum":"a72d69b14e7fae1e7e506e1f073af26c43004b6d","tarball":"https://registry.npmjs.org/@bbc/http-transport-to-error/-/http-transport-to-error-0.0.2.tgz","integrity":"sha512-GSR6sI8rz6BpgyeblGfjzO79ASwvkuk9SyQSe70Y+LyQiHPmu127AuB90tmNAX21hAm84SE2gpNm6UOdGkFfcw==","signatures":[{"sig":"MEUCIBXWPrVAPt03E2JoibDfCd1TxGOE8rIhad/d/M3KCPV0AiEAkssM1PyWKmYHT3EyOH5EeYcsnJzegF6HbdCTgDKt0oE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"a72d69b14e7fae1e7e506e1f073af26c43004b6d","engines":{"node":">=4.0.0"},"gitHead":"735ebb420f685922e81e1dace93398324cd2cfd9","scripts":{"lint":"eslint .","test":"mocha","coverage":"istanbul cover _mocha -- -R dot"},"_npmUser":{"name":"ibl","email":"ibl-team@lists.forge.bbc.co.uk"},"repository":{"url":"git+https://github.com/bbc/http-transport-to-error.git","type":"git"},"_npmVersion":"2.15.12","description":"Converts 4XX and 5XX responses to errors","directories":{},"_nodeVersion":"4.8.4","eslintConfig":{"extends":"iplayer-es6"},"devDependencies":{"chai":"^3.5.0","nock":"^9.0.4","jsdoc":"^3.4.3","mocha":"^3.0.2","sinon":"^1.15.3","eslint":"^3.11.1","lodash":"^4.17.4","istanbul":"^0.4.2","coveralls":"^2.11.9","@bbc/http-transport":"0.0.1","codeclimate-test-reporter":"^0.4.0","eslint-config-iplayer-es6":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/http-transport-to-error-0.0.2.tgz_1505399391155_0.44558904063887894","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@bbc/http-transport-to-error","version":"1.0.0","license":"Apache-2.0","_id":"@bbc/http-transport-to-error@1.0.0","maintainers":[{"name":"hjerling","email":"johan.hjerling.ext@bbc.co.uk"},{"name":"jontyusborne","email":"jonty.usborne@bbc.co.uk"},{"name":"nspragg","email":"nick.spragg@bbc.co.uk"},{"name":"zya","email":"ehsan.ziya@gmail.com"},{"name":"cejast","email":"cem.staveley@bbc.co.uk"},{"name":"niklasr","email":"nik.rahmel@bbc.co.uk"},{"name":"ibl","email":"ibl-team@lists.forge.bbc.co.uk"}],"homepage":"https://github.com/bbc/http-transport-to-error","bugs":{"url":"https://github.com/bbc/http-transport-to-error/issues"},"dist":{"shasum":"fd8b3a48a6aac29bd9b3ad3129a67b778cd0c321","tarball":"https://registry.npmjs.org/@bbc/http-transport-to-error/-/http-transport-to-error-1.0.0.tgz","integrity":"sha512-SvrVzmBIaO89CZzGN/ICybbVoxHugUbA6T4ZgadTiFQnCxwPmT2421n+dpe1IwV6mZxcPTtmqpipFWYJIe6rYw==","signatures":[{"sig":"MEQCIF7fGjPXp9v3DZQ6LtgTQkQpDdPc0/NKlcoMROG+ZZvGAiB+w9p+IJMycis5f9eFR+Zrmr/zqNXq4gDoZIZAK1u2Yw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","engines":{"node":">=4.0.0"},"gitHead":"8d4ac1e4239e2dc32de71a14f8c67e47f3895126","scripts":{"lint":"eslint .","test":"mocha","coverage":"istanbul cover _mocha -- -R dot"},"_npmUser":{"name":"ibl","email":"ibl-team@lists.forge.bbc.co.uk"},"repository":{"url":"git+https://github.com/bbc/http-transport-to-error.git","type":"git"},"_npmVersion":"5.4.2","description":"Converts 4XX and 5XX responses to errors","directories":{},"_nodeVersion":"8.6.0","eslintConfig":{"extends":"iplayer-es6"},"devDependencies":{"chai":"^3.5.0","nock":"^9.0.4","jsdoc":"^3.4.3","mocha":"^3.0.2","sinon":"^1.15.3","eslint":"^3.11.1","lodash":"^4.17.4","istanbul":"^0.4.2","coveralls":"^2.11.9","@bbc/http-transport":"0.0.1","codeclimate-test-reporter":"^0.4.0","eslint-config-iplayer-es6":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/http-transport-to-error-1.0.0.tgz_1511272841119_0.533207441912964","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@bbc/http-transport-to-error","version":"2.0.0","license":"Apache-2.0","_id":"@bbc/http-transport-to-error@2.0.0","maintainers":[{"name":"cejast","email":"cem.staveley@bbc.co.uk"},{"name":"hjerling","email":"johan.hjerling.ext@bbc.co.uk"},{"name":"ibl","email":"ibl-team@lists.forge.bbc.co.uk"},{"name":"jontyusborne","email":"jonty.usborne@bbc.co.uk"},{"name":"niklasr","email":"nik.rahmel@bbc.co.uk"},{"name":"nspragg","email":"nick.spragg@bbc.co.uk"},{"name":"zya","email":"ehsan.ziya@gmail.com"}],"homepage":"https://github.com/bbc/http-transport-to-error","bugs":{"url":"https://github.com/bbc/http-transport-to-error/issues"},"dist":{"shasum":"f1c00b63d5d045ed3e93b4d37d99c2c013300eab","tarball":"https://registry.npmjs.org/@bbc/http-transport-to-error/-/http-transport-to-error-2.0.0.tgz","fileCount":11,"integrity":"sha512-zQcCY/41DfKJ/lfQAP9V2tm8mbZLanYcoi2/dTq9KpewA1xBKpyBkMDC9XVGZmD12pv14XK+nBNdqTDdIMqC2g==","signatures":[{"sig":"MEYCIQCXwXYNw2BSvEi1PBnUFq8wuI0ILqSVX1TcFd29jh/6sgIhANnqalwLhFeX9nMbc08qs3nhvauB/7XLV0OoYG17Zsez","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5744},"main":"index.js","engines":{"node":">=8.0.0"},"gitHead":"b08aedefb3ccb74536531277dc145770bc1ce7f8","scripts":{"lint":"eslint .","test":"mocha","coverage":"istanbul cover _mocha -- -R dot"},"_npmUser":{"name":"nspragg","email":"nick.spragg@bbc.co.uk"},"repository":{"url":"git+https://github.com/bbc/http-transport-to-error.git","type":"git"},"_npmVersion":"5.6.0","description":"Converts 4XX and 5XX responses to errors","directories":{},"_nodeVersion":"8.7.0","eslintConfig":{"extends":"iplayer-es6"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","nock":"^9.0.4","jsdoc":"^3.4.3","mocha":"^3.0.2","sinon":"^1.15.3","eslint":"^3.11.1","lodash":"^4.17.4","istanbul":"^0.4.2","coveralls":"^2.11.9","@bbc/http-transport":"^2.0.0","codeclimate-test-reporter":"^0.4.0","eslint-config-iplayer-es6":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/http-transport-to-error_2.0.0_1519636839117_0.8689690430117403","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@bbc/http-transport-to-error","version":"2.0.1","license":"Apache-2.0","_id":"@bbc/http-transport-to-error@2.0.1","maintainers":[{"name":"cejast","email":"cem.staveley@bbc.co.uk"},{"name":"hjerling","email":"johan.hjerling.ext@bbc.co.uk"},{"name":"ibl","email":"ibl-team@lists.forge.bbc.co.uk"},{"name":"niklasr","email":"nik.rahmel@bbc.co.uk"},{"name":"nspragg","email":"nick.spragg@bbc.co.uk"},{"name":"zya","email":"ehsan.ziya@gmail.com"}],"homepage":"https://github.com/bbc/http-transport-to-error","bugs":{"url":"https://github.com/bbc/http-transport-to-error/issues"},"dist":{"shasum":"523a746cb6325df317a994e65a2cd64e3f8ceac5","tarball":"https://registry.npmjs.org/@bbc/http-transport-to-error/-/http-transport-to-error-2.0.1.tgz","fileCount":11,"integrity":"sha512-lqGW5pZX/q81i2tBah//9ggEi+DkXuEUMFdM2XjpAn1AhssaaZuk5rFR+xRpx4bE5UWEjmcMWL2o+uxGYA+TZQ==","signatures":[{"sig":"MEYCIQCzjwjo5DbtTDthBNVLr7/MO4grH01btc49kinlVPoGBgIhAN1tEtu0ZhrJsBnJBjTY32whPWRwF9RBGt6sSDnapS8q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5806,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa1wMVCRA9TVsSAnZWagAAYdoQAKLkEdpghePQMWJSGYaZ\nhqiLG35uzMyydxcfTPj1JA/0K3iu9GQT1fzWz7FqAnvnLtKCyaaOv2Ab4Nex\n/EGI0Sa5zSnRPsAD/w6vl3b49pdxXE6d1REedC6TpKZO03YNim0/PfiDOG39\n0uC5poq/CZPWgIKLsCHeJgSA++FuhWvyillZ/H1kO/HhA5sqatYYj1cjwpMZ\n7O9vua4HKd5Zi6ayXiEFpMSneMjouoh1kF+xp00UwzOwrx7GYDOwCSHgZLqz\n8V5tbN4gOYK332OxuH2c9UjeP/G9O/Ye4eOY7/sCSglDkiUWj8hutniiPX6o\n5dyAjJDw8qlEVQWa/gDQAT+H6MS/55Mmyi8eKtxT2UIFw2hE2lRY80xyq6Hb\nBx/wsnIyErvxlzVOPtXzJkGLH61ourceEV2rILydhUIC+dq5kvT1U8+ZbWNt\nmndON8R202OjPXNQzO7qwI/sG0vzFb4DnEicMs7eQy9Fh/M2UX+d9fqCgkOg\nXxHJfeHkzmZiu/33af+eHfxgjQQEfUvQ5/JeZmFxcupWKPzNA2z0KjBEmuCg\n6WFM0d95ZVHleBYBfKcccvLb2ar/DBvEjBq/VaoWhZnI/9BKIVyod+8vMiXC\nANVCEpPOXMRhZNR3O+pPIKRs5BgOPrHgFPfgii5U41WdRA7XYqdDdnrTanX1\nB2J/\r\n=Uyew\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=8.0.0"},"gitHead":"bbad1d86d6bee99a50567f784313dd9a2c551191","scripts":{"lint":"eslint .","test":"mocha","coverage":"istanbul cover _mocha -- -R dot"},"_npmUser":{"name":"cejast","email":"cem.staveley@bbc.co.uk"},"repository":{"url":"git+https://github.com/bbc/http-transport-to-error.git","type":"git"},"_npmVersion":"5.7.1","description":"Converts 4XX and 5XX responses to errors","directories":{},"_nodeVersion":"8.9.4","eslintConfig":{"extends":"iplayer-es6"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","nock":"^9.0.4","jsdoc":"^3.4.3","mocha":"^3.0.2","sinon":"^1.15.3","eslint":"^3.11.1","lodash":"^4.17.4","istanbul":"^0.4.2","coveralls":"^2.11.9","@bbc/http-transport":"^2.0.0","codeclimate-test-reporter":"^0.4.0","eslint-config-iplayer-es6":"^1.3.0"},"peerDependencies":{"@bbc/http-transport":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/http-transport-to-error_2.0.1_1524040468513_0.1472744994977344","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"@bbc/http-transport-to-error","version":"2.1.1","license":"Apache-2.0","_id":"@bbc/http-transport-to-error@2.1.1","maintainers":[{"name":"hjerling","email":"johan.hjerling.ext@bbc.co.uk"},{"name":"ibl","email":"ibl-team@lists.forge.bbc.co.uk"},{"name":"jsonl","email":"jason.luong@bbc.co.uk"},{"name":"niklasr","email":"nik.rahmel@bbc.co.uk"},{"name":"nspragg","email":"nick.spragg@bbc.co.uk"},{"name":"zya","email":"ehsan.ziya@gmail.com"}],"homepage":"https://github.com/bbc/http-transport-to-error","bugs":{"url":"https://github.com/bbc/http-transport-to-error/issues"},"dist":{"shasum":"59233a3be38f6aa8af167397f6558337abc5b8f0","tarball":"https://registry.npmjs.org/@bbc/http-transport-to-error/-/http-transport-to-error-2.1.1.tgz","fileCount":11,"integrity":"sha512-s0gqwM6ldFAHZjb5krFHRKD67ZtSz1+pWrN9aoQZW/VPNc9YM2VvDLa048IffybHifizpYj33UvqIxAYa1Al/g==","signatures":[{"sig":"MEUCIFDPPhuDtMqnlb2+ZBCgrUudXDrPQH3+KmcRf4679MTQAiEAneDtUdrG7pOKvM4560v3uKuxd0hFpwZHCsvVl9hhxrE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6188,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcY/UvCRA9TVsSAnZWagAArZwP/jd7gHnply6jQ8529cjq\nXKwYNaZfgOgETfQHaB/2yIiIiqAV1YozNWllPKSz1csd7RzgXjMhZeZJMamJ\n2q0+n+VWvLNAcv34Nqd36qOiAPvb4HQTKgu0lahsZJ/80HE8wY+BZuhD+Pr0\ntawkozVcIaDAjc5MUyiGZolxXNKKNE6u82YUPVuSMCZx7uu9kNtE6640Uto1\nfibEYVSdgdvDjmPrQu0S1ZyYq6eRmeSC4GvTjmGR7FveesI5xz8tt6ATcZhk\nNrUBr65ASwSUeiG+Mo1kxq6SsrEfeSrnKCOo1UWoQx8/ZAFAm6O8sWzi1HQ3\nnoi7C4XuCwjhYfGqMxZZZK0zogloibu7GfsAnurXLkA0remUxIk25FwdbMsn\nYg404s2/aOn5fhcQt54i7EoR3zeznxlHDjeO9Z2+ZpGMqGegHnJ2VqPh3lHk\nE8+hX/tqY4aTEzT66nqALuEceyLV4Bm433DdS7dC5EvgyhMUOF5MqUoeUF9q\nCG0eOMyS9WarAfGBrjln3a8VeySrHyj0im0YmKHjyqKe+YkL2u/mMF3xIFCu\ntIOol7m+/ye2kABekFMtlaXbTXV1TgltgAMwDza1hx9Z4hnbP9HF0+wX8CHP\nn4g2EtXe5ctjbBNEiPNWiaj/t1O8IKoagZlziLblSpke7iXUe6JUnMYrkK53\nI2Y8\r\n=JPQi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=8.0.0"},"gitHead":"529edf8593d5a6ad28ce5c99cd89e17436d062e7","scripts":{"lint":"eslint .","test":"mocha","coverage":"istanbul cover _mocha -- -R dot"},"_npmUser":{"name":"ibl","email":"ibl-team@lists.forge.bbc.co.uk"},"repository":{"url":"git+https://github.com/bbc/http-transport-to-error.git","type":"git"},"_npmVersion":"6.5.0","description":"Converts 4XX and 5XX responses to errors","directories":{},"_nodeVersion":"8.7.0","eslintConfig":{"extends":"iplayer-es6"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","nock":"^9.0.4","jsdoc":"^3.4.3","mocha":"^5.2.0","sinon":"^1.15.3","eslint":"^4.19.1","lodash":"^4.17.4","istanbul":"^0.4.2","coveralls":"^3.0.2","@bbc/http-transport":"^3.4.2","eslint-config-iplayer":"^6.2.1","codeclimate-test-reporter":"^0.5.1"},"peerDependencies":{"@bbc/http-transport":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/http-transport-to-error_2.1.1_1550054703254_0.8349324143891357","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"@bbc/http-transport-to-error","version":"2.2.0","license":"Apache-2.0","_id":"@bbc/http-transport-to-error@2.2.0","maintainers":[{"name":"kieranjoyce","email":"kieran.joyce99@gmail.com"},{"name":"monsai","email":"simone.spaccarotella@bbc.co.uk"},{"name":"rosemcnally","email":"rose.mcnally@bbc.co.uk"},{"name":"felixmercermoss","email":"felix.mercermoss@bbc.co.uk"},{"name":"katyasa","email":"Katya.Saint-Amand@bbc.co.uk"},{"name":"dwalker487","email":"Duncan.Walker02@bbc.co.uk"},{"name":"amitsavant","email":"amit.savant@bbc.co.uk"},{"name":"remotecharms","email":"emma.crothers@bbc.co.uk"},{"name":"npmbs","email":"ben.symons@bbc.co.uk"},{"name":"vaughr03","email":"richard.e.vaughan@bbc.co.uk"},{"name":"iuketaylor","email":"lqketaylor@gmail.com"},{"name":"jamiebower185","email":"jamie.reidbower@bbc.co.uk"},{"name":"benjwheeler","email":"ben.wheeler.ext@bbc.co.uk"},{"name":"onlyonehas","email":"hassanabbas93@hotmail.com"},{"name":"drrobharper","email":"rob.harper@bbc.co.uk"},{"name":"johnnewman","email":"john.newman@bbc.co.uk"},{"name":"ibl","email":"ibl-team@lists.forge.bbc.co.uk"},{"name":"simontanner","email":"simon.tanner01@bbc.co.uk"},{"name":"simongregory","email":"simon.gregory@bbc.co.uk"},{"name":"tonymcbeth","email":"tony.mcbeth@bbc.co.uk"}],"homepage":"https://github.com/bbc/http-transport-to-error","bugs":{"url":"https://github.com/bbc/http-transport-to-error/issues"},"dist":{"shasum":"d5c1e1644354e203193b8d129bb232191da31ae5","tarball":"https://registry.npmjs.org/@bbc/http-transport-to-error/-/http-transport-to-error-2.2.0.tgz","fileCount":9,"integrity":"sha512-C8lFCZdDY+qdigB5ue+B3q04EZL+zaz63H9aPKM5URyIgqERNvqIMPANZnNC0wGXfx3f/VZfvUCslo6v68n14A==","signatures":[{"sig":"MEUCIA3Wkj3pxZ26SZxn2sy4J6rjb+8wigx8YpBx71C5NleYAiEAhhyhtJv+xow83ZsJH5dXVLNSYy2mDOASJTCs7f8/mE4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5548},"main":"index.js","engines":{"node":">=8.0.0"},"gitHead":"d2988b4a3b06e2f72283619ad345c7c38e97b011","scripts":{"lint":"eslint .","test":"mocha","coverage":"nyc npm run test","posttest":"npm run lint"},"_npmUser":{"name":"jamiebower185","email":"jamie.reidbower@bbc.co.uk"},"repository":{"url":"git+https://github.com/bbc/http-transport-to-error.git","type":"git"},"_npmVersion":"9.6.7","description":"Converts 4XX and 5XX responses to errors","directories":{},"_nodeVersion":"18.17.0","eslintConfig":{"extends":"iplayer"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^3.5.0","nock":"^13.3.3","mocha":"^10.2.0","eslint":"^4.19.1","@bbc/http-transport":"^4.3.0","eslint-config-iplayer":"^6.2.1"},"peerDependencies":{"@bbc/http-transport":"^4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/http-transport-to-error_2.2.0_1695913661478_0.2615482326938978","host":"s3://npm-registry-packages"}},"2.2.1":{"name":"@bbc/http-transport-to-error","version":"2.2.1","license":"Apache-2.0","_id":"@bbc/http-transport-to-error@2.2.1","maintainers":[{"name":"kieranjoyce","email":"kieran.joyce99@gmail.com"},{"name":"monsai","email":"simone.spaccarotella@bbc.co.uk"},{"name":"rosemcnally","email":"rose.mcnally@bbc.co.uk"},{"name":"felixmercermoss","email":"felix.mercermoss@bbc.co.uk"},{"name":"katyasa","email":"Katya.Saint-Amand@bbc.co.uk"},{"name":"dwalker487","email":"Duncan.Walker02@bbc.co.uk"},{"name":"amitsavant","email":"amit.savant@bbc.co.uk"},{"name":"remotecharms","email":"emma.crothers@bbc.co.uk"},{"name":"npmbs","email":"ben.symons@bbc.co.uk"},{"name":"vaughr03","email":"richard.e.vaughan@bbc.co.uk"},{"name":"iuketaylor","email":"lqketaylor@gmail.com"},{"name":"jamiebower185","email":"jamie.reidbower@bbc.co.uk"},{"name":"benjwheeler","email":"ben.wheeler.ext@bbc.co.uk"},{"name":"onlyonehas","email":"hassanabbas93@hotmail.com"},{"name":"drrobharper","email":"rob.harper@bbc.co.uk"},{"name":"johnnewman","email":"john.newman@bbc.co.uk"},{"name":"ibl","email":"ibl-team@lists.forge.bbc.co.uk"},{"name":"simontanner","email":"simon.tanner01@bbc.co.uk"},{"name":"simongregory","email":"simon.gregory@bbc.co.uk"},{"name":"tonymcbeth","email":"tony.mcbeth@bbc.co.uk"}],"homepage":"https://github.com/bbc/http-transport-to-error","bugs":{"url":"https://github.com/bbc/http-transport-to-error/issues"},"dist":{"shasum":"e0da810dd03f8fe8853bc435ce9c50aa295c9cfa","tarball":"https://registry.npmjs.org/@bbc/http-transport-to-error/-/http-transport-to-error-2.2.1.tgz","fileCount":9,"integrity":"sha512-oAo1mkpjE02QA9RkshwxZK0NTjRAk47ayLbfcXrhNyqI/bL15wnARkRrlRXGtZ6QyfqVoTxxGUJ1IXJKdydDTA==","signatures":[{"sig":"MEUCIB24Ap+rI8tW9jW9NFkX2V2FjlRHiEVXi2i8ddtbWB3HAiEAnUNN2A42lcXawTwgnPWVupVxTaWzGGKNOqOKz+sncLc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5547},"main":"index.js","engines":{"node":">=8.0.0"},"gitHead":"e516b1d9546dd855f7a256c72b09921b78ec68f6","scripts":{"lint":"eslint .","test":"mocha","coverage":"nyc npm run test","posttest":"npm run lint"},"_npmUser":{"name":"jamiebower185","email":"jamie.reidbower@bbc.co.uk"},"repository":{"url":"git+https://github.com/bbc/http-transport-to-error.git","type":"git"},"_npmVersion":"9.6.7","description":"Converts 4XX and 5XX responses to errors","directories":{},"_nodeVersion":"18.17.0","eslintConfig":{"extends":"iplayer"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^3.5.0","nock":"^13.3.3","mocha":"^10.2.0","eslint":"^4.19.1","@bbc/http-transport":"^4.3.0","eslint-config-iplayer":"^6.2.1"},"peerDependencies":{"@bbc/http-transport":"^3 ^4"},"_npmOperationalInternal":{"tmp":"tmp/http-transport-to-error_2.2.1_1695999162473_0.30558870955346373","host":"s3://npm-registry-packages"}},"2.2.2":{"name":"@bbc/http-transport-to-error","version":"2.2.2","license":"Apache-2.0","_id":"@bbc/http-transport-to-error@2.2.2","maintainers":[{"name":"kieranjoyce","email":"kieran.joyce99@gmail.com"},{"name":"monsai","email":"simone.spaccarotella@bbc.co.uk"},{"name":"rosemcnally","email":"rose.mcnally@bbc.co.uk"},{"name":"felixmercermoss","email":"felix.mercermoss@bbc.co.uk"},{"name":"katyasa","email":"Katya.Saint-Amand@bbc.co.uk"},{"name":"dwalker487","email":"Duncan.Walker02@bbc.co.uk"},{"name":"amitsavant","email":"amit.savant@bbc.co.uk"},{"name":"remotecharms","email":"emma.crothers@bbc.co.uk"},{"name":"npmbs","email":"ben.symons@bbc.co.uk"},{"name":"vaughr03","email":"richard.e.vaughan@bbc.co.uk"},{"name":"iuketaylor","email":"lqketaylor@gmail.com"},{"name":"jamiebower185","email":"jamie.reidbower@bbc.co.uk"},{"name":"benjwheeler","email":"ben.wheeler.ext@bbc.co.uk"},{"name":"onlyonehas","email":"hassanabbas93@hotmail.com"},{"name":"drrobharper","email":"rob.harper@bbc.co.uk"},{"name":"johnnewman","email":"john.newman@bbc.co.uk"},{"name":"ibl","email":"ibl-team@lists.forge.bbc.co.uk"},{"name":"simontanner","email":"simon.tanner01@bbc.co.uk"},{"name":"simongregory","email":"simon.gregory@bbc.co.uk"},{"name":"tonymcbeth","email":"tony.mcbeth@bbc.co.uk"}],"homepage":"https://github.com/bbc/http-transport-to-error","bugs":{"url":"https://github.com/bbc/http-transport-to-error/issues"},"dist":{"shasum":"e68210ef0e17f18a7355498988080785780755de","tarball":"https://registry.npmjs.org/@bbc/http-transport-to-error/-/http-transport-to-error-2.2.2.tgz","fileCount":9,"integrity":"sha512-4saudf05T9vTAnUNDP45a8tnJTmMWh9xAxY/JWMkLoWjSnh85Ho6YTwvtyTDRR+y0smel3YR4N4UcuBSqyLT6Q==","signatures":[{"sig":"MEYCIQCdxfSVKY8voG+T8XTv+FL0n+iz9Aycd3MCZVVgMJmKzwIhAO8bZZVAh3Fxt/ODYwILlZP5FyifZ8KhqVvJfZl72wcA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5550},"main":"index.js","engines":{"node":">=8.0.0"},"gitHead":"e2bd0c3b279b2904413c08409b37343629c5adbb","scripts":{"lint":"eslint .","test":"mocha","coverage":"nyc npm run test","posttest":"npm run lint"},"_npmUser":{"name":"jamiebower185","email":"jamie.reidbower@bbc.co.uk"},"repository":{"url":"git+https://github.com/bbc/http-transport-to-error.git","type":"git"},"_npmVersion":"9.6.7","description":"Converts 4XX and 5XX responses to errors","directories":{},"_nodeVersion":"18.17.0","eslintConfig":{"extends":"iplayer"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^3.5.0","nock":"^13.3.3","mocha":"^10.2.0","eslint":"^4.19.1","@bbc/http-transport":"^4.3.0","eslint-config-iplayer":"^6.2.1"},"peerDependencies":{"@bbc/http-transport":"^3 || ^4"},"_npmOperationalInternal":{"tmp":"tmp/http-transport-to-error_2.2.2_1696000722757_0.27588752443402975","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-09-05T13:08:53.002Z","modified":"2026-08-21T07:02:06.449Z","0.0.1":"2017-09-05T13:08:53.002Z","0.0.2":"2017-09-14T14:29:52.153Z","1.0.0":"2017-11-21T14:00:41.985Z","2.0.0":"2018-02-26T09:20:39.196Z","2.0.1":"2018-04-18T08:34:28.610Z","2.1.1":"2019-02-13T10:45:03.403Z","2.2.0":"2023-09-28T15:07:41.760Z","2.2.1":"2023-09-29T14:52:42.635Z","2.2.2":"2023-09-29T15:18:42.972Z"},"bugs":{"url":"https://github.com/bbc/http-transport-to-error/issues"},"license":"Apache-2.0","homepage":"https://github.com/bbc/http-transport-to-error","repository":{"url":"git+https://github.com/bbc/http-transport-to-error.git","type":"git"},"description":"Converts 4XX and 5XX responses to errors","maintainers":[{"email":"IBLMachineUser@bbc.co.uk","name":"ibl"},{"email":"kieran.joyce99@gmail.com","name":"kieranjoyce"},{"email":"pjlangleynpm@gmail.com","name":"pjlangley"},{"email":"tom.szpytman.ext@bbc.co.uk","name":"szpytfire-bbc"},{"email":"simon.tanner01@bbc.co.uk","name":"simontanner"},{"email":"simon.gregory@bbc.co.uk","name":"simongregory"},{"email":"tony.mcbeth@bbc.co.uk","name":"tonymcbeth"},{"email":"john.newman@bbc.co.uk","name":"johnnewman"},{"email":"jamie.reidbower@bbc.co.uk","name":"jamiebower185"},{"email":"hassanabbas93@hotmail.com","name":"onlyonehas"},{"email":"beth@gingertonic.io","name":"gingertonicst"},{"email":"lqketaylor@gmail.com","name":"iuketaylor"},{"email":"notten.dev13@gmail.com","name":"notten13"},{"email":"ben.symons@bbc.co.uk","name":"npmbs"},{"email":"kaifahmed+npm@gmail.com","name":"brotherkaif"},{"email":"naivinh.ta.ext@bbc.co.uk","name":"naivinh.ta.bbc"},{"email":"patrick.shaw@bbc.co.uk","name":"pshaw03"},{"email":"amit.savant@bbc.co.uk","name":"amitsavant"},{"email":"eden.obrienbutcher@gmail.com","name":"eobr"},{"email":"paul.brimicombe@bbc.co.uk","name":"paulyb"},{"email":"charles.jewell47@gmail.com","name":"cjewell47"},{"email":"vinod.rane@bbc.co.uk","name":"vinodrane"},{"email":"sam.bason@bbc.co.uk","name":"sbason"},{"email":"alex.edwards@bbc.co.uk","name":"lexedwardsbbc"},{"email":"Duncan.Walker02@bbc.co.uk","name":"dwalker487"},{"email":"Katya.Saint-Amand@bbc.co.uk","name":"katyasa"},{"email":"felix.mercermoss@bbc.co.uk","name":"felixmercermoss"},{"email":"nikita.agarwal@bbc.co.uk","name":"nikitaagg19"},{"email":"matt.frost@bbc.co.uk","name":"mattfrost86"},{"email":"marinos.papamichael.ext@bbc.co.uk","name":"marinos-papamichael"},{"email":"joe.jackson@bbc.co.uk","name":"joepock33c"},{"email":"georgia.vente@bbc.co.uk","name":"giavente"},{"email":"rob.harper@bbc.co.uk","name":"drrobharper"},{"email":"charles.alexis.ext@bbc.co.uk","name":"charles_alexis"},{"email":"emmanuel.mathar@bbc.co.uk","name":"emathar"},{"email":"jackperry2187@gmail.com","name":"jackperry2187"},{"email":"james.kirk@bbc.co.uk","name":"jim-beeb"},{"email":"neil.copland@bbc.co.uk","name":"nbc-bbc"},{"email":"iRecs@bbc.co.uk","name":"irex-team"}],"readme":"[![NPM downloads](https://img.shields.io/npm/dm/@bbc/http-transport-to-error.svg?style=flat)](https://npmjs.org/package/@bbc/http-transport-to-error)\n![npm](https://img.shields.io/npm/v/@bbc/http-transport-to-error.svg)\n ![license](https://img.shields.io/badge/license-MIT-blue.svg) \n![github-issues](https://img.shields.io/github/issues/bbc/http-transport-to-error.svg)\n![stars](https://img.shields.io/github/stars/bbc/http-transport-to-error.svg)\n![forks](https://img.shields.io/github/forks/bbc/http-transport-to-error.svg)\n\n# http-transport-to-error\n\n> Middleware convert 4XX and 5XX responses to errors\n\n## Installation\n\n```\nnpm install --save @bbc/http-transport-to-error\n```\n\n## Usage\n\n```js\nConvert any response equal to or greater than 400 to errors: \n\nconst url = 'http://example.com/404';\nconst HttpTransport = require('@bbc/http-transport');\nconst toError = require('@bbc/http-transport-to-error');\n\nconst client = HttpTransport.createBuilder()\n   .use(toError())\n   .createClient();\n\n  try {\n    await client.get(url).asResponse();\n  } catch (err) {\n    console.error(err);    \n  }\n});\n```\n\n## Test\n\n```\nnpm test\n```\n\nTo generate a test coverage report:\n\n```\nnpm run coverage\n```\n","readmeFilename":"README.md"}