Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

httpexceptions

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httpexceptions - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

package.json
{
"name": "httpexceptions",
"version": "1.0.4",
"version": "1.0.5",
"description": "Provide exception for HTTP Rest API",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -23,3 +23,3 @@ /**

expect(err instanceof HTTPException.HTTPException).to.be.true;
expect(err.getStatus()).to.equal(502);
expect(err.status).to.equal(502);
}

@@ -36,3 +36,3 @@

expect(err instanceof HTTPException.HTTPException).to.be.true;
expect(err.getStatus()).to.equal(400);
expect(err.status).to.equal(400);
}

@@ -49,3 +49,3 @@

expect(err instanceof HTTPException.HTTPException).to.be.true;
expect(err.getStatus()).to.equal(403);
expect(err.status).to.equal(403);
}

@@ -62,3 +62,3 @@

expect(err instanceof HTTPException.HTTPException).to.be.true;
expect(err.getStatus()).to.equal(400);
expect(err.status).to.equal(400);
}

@@ -75,3 +75,3 @@

expect(err instanceof HTTPException.HTTPException).to.be.true;
expect(err.getStatus()).to.equal(500);
expect(err.status).to.equal(500);
}

@@ -88,3 +88,3 @@

expect(err instanceof HTTPException.HTTPException).to.be.true;
expect(err.getStatus()).to.equal(405);
expect(err.status).to.equal(405);
}

@@ -101,3 +101,3 @@

expect(err instanceof HTTPException.HTTPException).to.be.true;
expect(err.getStatus()).to.equal(406);
expect(err.status).to.equal(406);
}

@@ -115,3 +115,3 @@

expect(err instanceof HTTPException.HTTPException).to.be.true;
expect(err.getStatus()).to.equal(404);
expect(err.status).to.equal(404);
}

@@ -128,3 +128,3 @@

expect(err instanceof HTTPException.HTTPException).to.be.true;
expect(err.getStatus()).to.equal(501);
expect(err.status).to.equal(501);
}

@@ -141,3 +141,3 @@

expect(err instanceof HTTPException.HTTPException).to.be.true;
expect(err.getStatus()).to.equal(402);
expect(err.status).to.equal(402);
}

@@ -154,3 +154,3 @@

expect(err instanceof HTTPException.HTTPException).to.be.true;
expect(err.getStatus()).to.equal(502);
expect(err.status).to.equal(502);
}

@@ -167,3 +167,3 @@

expect(err instanceof HTTPException.HTTPException).to.be.true;
expect(err.getStatus()).to.equal(503);
expect(err.status).to.equal(503);
}

@@ -180,3 +180,3 @@

expect(err instanceof HTTPException.HTTPException).to.be.true;
expect(err.getStatus()).to.equal(401);
expect(err.status).to.equal(401);
}

@@ -183,0 +183,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc