HTTP status code matcher for jasmine (gives you the textual status as well as the provided number)
npm install jasmine-http-status-code-matcherInstall via npm:
```
npm install --save-dev jasmine-http-status-code-matcher
import in node:
``
var customMatchers = require('jasmine-http-status-code-matcher');
tell jasmine to use the matchers:
``
jasmine.addMatchers(customMatchers);
Expect a status code to be a given status code
``
// res.statusCode = 204
expect(res.statusCode).toBeStatusCode(404);
would output:
``
Expected 204 (No Content) to be 404 (Not Found)
Also works with .not like this:
``
// res.statusCode = 204
expect(res.statusCode).not.toBeStatusCode(404);
would output:
```
Expected 204 (No Content) not to be 404 (Not Found)