Skip to content

Commit b2a0220

Browse files
authored
Merge pull request #34 from codevor/feature/validator-methods
Feature/validator methods
2 parents 4714654 + d31d8c8 commit b2a0220

File tree

351 files changed

+48588
-756
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

351 files changed

+48588
-756
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ $ yarn add js-http-status
2020

2121
## Usage
2222

23+
Practice and learn [here](https://npm.runkit.com/js-http-status).
24+
2325
With ES6/import
2426

2527
```js

docs/HTTPStatusError.html

Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
5+
<meta charset="utf-8">
6+
<title>HTTPStatusError - js-http-status</title>
7+
8+
<meta name="description" content="A simple way to catch HTTP statuses with JavaScript.." />
9+
10+
<meta name="keywords" content="jsdoc, docdash" />
11+
<meta name="keyword" content="jsdoc, docdash" />
12+
13+
14+
15+
<script src="scripts/prettify/prettify.js"></script>
16+
<script src="scripts/prettify/lang-css.js"></script>
17+
<!--[if lt IE 9]>
18+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
19+
<![endif]-->
20+
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
21+
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
22+
<script src="scripts/nav.js" defer></script>
23+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
24+
</head>
25+
<body>
26+
27+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
28+
<label for="nav-trigger" class="navicon-button x">
29+
<div class="navicon"></div>
30+
</label>
31+
32+
<label for="nav-trigger" class="overlay"></label>
33+
34+
<nav >
35+
36+
<input type="text" id="nav-search" placeholder="Search" />
37+
38+
<h2><a href="index.html">Home</a></h2><h2><a href="https://github.com/codevor/js-http-status" target="_blank" class="menu-item" id="repository" >Github repo</a></h2><h3>Classes</h3><ul><li><a href="HTTPStatusError.html">HTTPStatusError</a></li></ul><h3>Global</h3><ul><li><a href="global.html#findHttpStatus">findHttpStatus</a></li><li><a href="global.html#findStatusByCode">findStatusByCode</a></li><li><a href="global.html#findStatusByKey">findStatusByKey</a></li><li><a href="global.html#isAccepted">isAccepted</a></li><li><a href="global.html#isAlreadyReported">isAlreadyReported</a></li><li><a href="global.html#isBadGateway">isBadGateway</a></li><li><a href="global.html#isBadRequest">isBadRequest</a></li><li><a href="global.html#isClientClosedRequest">isClientClosedRequest</a></li><li><a href="global.html#isConflict">isConflict</a></li><li><a href="global.html#isConnectionClosedWithoutResponse">isConnectionClosedWithoutResponse</a></li><li><a href="global.html#isContinue">isContinue</a></li><li><a href="global.html#isCreated">isCreated</a></li><li><a href="global.html#isExpectationFailed">isExpectationFailed</a></li><li><a href="global.html#isFailedDependency">isFailedDependency</a></li><li><a href="global.html#isForbidden">isForbidden</a></li><li><a href="global.html#isFound">isFound</a></li><li><a href="global.html#isGatewayTimeout">isGatewayTimeout</a></li><li><a href="global.html#isGone">isGone</a></li><li><a href="global.html#isHttpVersionNotSupported">isHttpVersionNotSupported</a></li><li><a href="global.html#isImTeapot">isImTeapot</a></li><li><a href="global.html#isImUsed">isImUsed</a></li><li><a href="global.html#isInsufficientStorage">isInsufficientStorage</a></li><li><a href="global.html#isInternalServerError">isInternalServerError</a></li><li><a href="global.html#isLengthRequired">isLengthRequired</a></li><li><a href="global.html#isLocked">isLocked</a></li><li><a href="global.html#isLoopDetected">isLoopDetected</a></li><li><a href="global.html#isMethodNotAllowed">isMethodNotAllowed</a></li><li><a href="global.html#isMisdirectedRequest">isMisdirectedRequest</a></li><li><a href="global.html#isMovedPermanently">isMovedPermanently</a></li><li><a href="global.html#isMultipleChoices">isMultipleChoices</a></li><li><a href="global.html#isMultiStatus">isMultiStatus</a></li><li><a href="global.html#isNetworkAuthenticationRequired">isNetworkAuthenticationRequired</a></li><li><a href="global.html#isNetworkConnectTimeoutError">isNetworkConnectTimeoutError</a></li><li><a href="global.html#isNoContent">isNoContent</a></li><li><a href="global.html#isNonAuthoritativeInformation">isNonAuthoritativeInformation</a></li><li><a href="global.html#isNotAcceptable">isNotAcceptable</a></li><li><a href="global.html#isNotExtended">isNotExtended</a></li><li><a href="global.html#isNotFound">isNotFound</a></li><li><a href="global.html#isNotImplemented">isNotImplemented</a></li><li><a href="global.html#isNotModified">isNotModified</a></li><li><a href="global.html#isOk">isOk</a></li><li><a href="global.html#isPartialContent">isPartialContent</a></li><li><a href="global.html#isPayloadTooLarge">isPayloadTooLarge</a></li><li><a href="global.html#isPaymentRequired">isPaymentRequired</a></li><li><a href="global.html#isPermanentRedirect">isPermanentRedirect</a></li><li><a href="global.html#isPreconditionFailed">isPreconditionFailed</a></li><li><a href="global.html#isPreconditionRequired">isPreconditionRequired</a></li><li><a href="global.html#isProcessing">isProcessing</a></li><li><a href="global.html#isProxyAuthenticationRequired">isProxyAuthenticationRequired</a></li><li><a href="global.html#isRequestedRangeNotSatisfiable">isRequestedRangeNotSatisfiable</a></li><li><a href="global.html#isRequestHeaderFieldsTooLarge">isRequestHeaderFieldsTooLarge</a></li><li><a href="global.html#isRequestTimeout">isRequestTimeout</a></li><li><a href="global.html#isRequestUriTooLong">isRequestUriTooLong</a></li><li><a href="global.html#isResetContent">isResetContent</a></li><li><a href="global.html#isSeeOther">isSeeOther</a></li><li><a href="global.html#isServiceUnavailable">isServiceUnavailable</a></li><li><a href="global.html#isSwitchingProtocols">isSwitchingProtocols</a></li><li><a href="global.html#isTemporaryRedirect">isTemporaryRedirect</a></li><li><a href="global.html#isTooManyRequests">isTooManyRequests</a></li><li><a href="global.html#isUnauthorized">isUnauthorized</a></li><li><a href="global.html#isUnavailableForLegalReasons">isUnavailableForLegalReasons</a></li><li><a href="global.html#isUnprocessableEntity">isUnprocessableEntity</a></li><li><a href="global.html#isUnsupportedMediaType">isUnsupportedMediaType</a></li><li><a href="global.html#isUpgradeRequired">isUpgradeRequired</a></li><li><a href="global.html#isUseproxy">isUseproxy</a></li><li><a href="global.html#isVariantAlsoNegotiates">isVariantAlsoNegotiates</a></li></ul>
39+
</nav>
40+
41+
<div id="main">
42+
43+
<h1 class="page-title">HTTPStatusError</h1>
44+
45+
46+
47+
48+
49+
50+
51+
<section>
52+
53+
<header>
54+
55+
<h2>
56+
HTTPStatusError
57+
</h2>
58+
59+
60+
</header>
61+
62+
<article>
63+
64+
<div class="container-overview">
65+
66+
67+
68+
69+
70+
<h4 class="name" id="HTTPStatusError"><span class="type-signature"></span>new HTTPStatusError<span class="signature">(message)</span><span class="type-signature"></span></h4>
71+
72+
73+
74+
75+
76+
77+
<dl class="details">
78+
79+
80+
<dt class="tag-source">Source:</dt>
81+
<dd class="tag-source"><ul class="dummy"><li>
82+
<a href="errors_http-status-error.js.html">errors/http-status-error.js</a>, <a href="errors_http-status-error.js.html#line8">line 8</a>
83+
</li></ul></dd>
84+
85+
86+
87+
88+
89+
90+
91+
92+
93+
94+
95+
96+
97+
98+
99+
100+
101+
102+
103+
104+
105+
106+
107+
108+
109+
110+
111+
112+
113+
114+
115+
</dl>
116+
117+
118+
119+
120+
121+
<div class="description">
122+
<p>Throw exception type HTTPStatusError</p>
123+
</div>
124+
125+
126+
127+
128+
129+
130+
131+
132+
133+
134+
135+
<h5>Parameters:</h5>
136+
137+
138+
<table class="params">
139+
<thead>
140+
<tr>
141+
142+
<th>Name</th>
143+
144+
145+
<th>Type</th>
146+
147+
148+
149+
150+
151+
<th class="last">Description</th>
152+
</tr>
153+
</thead>
154+
155+
<tbody>
156+
157+
158+
<tr>
159+
160+
<td class="name"><code>message</code></td>
161+
162+
163+
<td class="type">
164+
165+
166+
<span class="param-type">String</span>
167+
168+
169+
170+
</td>
171+
172+
173+
174+
175+
176+
<td class="description last"><p>Status error message</p></td>
177+
</tr>
178+
179+
180+
</tbody>
181+
</table>
182+
183+
184+
185+
186+
187+
188+
189+
190+
191+
192+
193+
194+
195+
196+
197+
198+
199+
200+
201+
202+
</div>
203+
204+
205+
206+
207+
208+
209+
210+
211+
212+
213+
214+
215+
216+
217+
218+
219+
220+
221+
222+
223+
224+
</article>
225+
226+
</section>
227+
228+
229+
230+
231+
232+
233+
</div>
234+
235+
<br class="clear">
236+
237+
<footer>
238+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Oct 25 2019 13:41:35 GMT-0300 (Brasilia Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
239+
</footer>
240+
241+
<script>prettyPrint();</script>
242+
<script src="scripts/polyfill.js"></script>
243+
<script src="scripts/linenumber.js"></script>
244+
245+
<script src="scripts/search.js" defer></script>
246+
247+
248+
<script src="scripts/collapse.js" defer></script>
249+
250+
251+
</body>
252+
</html>

0 commit comments

Comments
 (0)