httpexceptions
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171477