Skip to content

Commit 286b2db

Browse files
committed
Deploy website
Deploy website version based on 210e0cad47a909dd0abb50fa50327843ff6f2049
1 parent 82c669b commit 286b2db

54 files changed

Lines changed: 54 additions & 54 deletions

Some content is hidden

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

docs/5.2.0/check-api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ <h2><a class="anchor" aria-hidden="true" id="oneofvalidationchains-message"></a>
118118
res.json(...);
119119
} <span class="hljs-keyword">catch</span> (err) {
120120
<span class="hljs-comment">// Oh noes. This user doesn't have enough skills for this...</span>
121-
res.status(<span class="hljs-number">422</span>).json(...);
121+
res.status(<span class="hljs-number">400</span>).json(...);
122122
}
123123
});
124124
</code></pre>

docs/5.2.0/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <h2><a class="anchor" aria-hidden="true" id="basic-guide"></a><a href="#basic-gu
9090
<span class="hljs-comment">// Finds the validation errors in this request and wraps them in an object with handy functions</span>
9191
<span class="hljs-keyword">const</span> errors = validationResult(req);
9292
<span class="hljs-keyword">if</span> (!errors.isEmpty()) {
93-
<span class="hljs-keyword">return</span> res.status(<span class="hljs-number">422</span>).json({ <span class="hljs-attr">errors</span>: errors.array() });
93+
<span class="hljs-keyword">return</span> res.status(<span class="hljs-number">400</span>).json({ <span class="hljs-attr">errors</span>: errors.array() });
9494
}
9595

9696
User.create({

docs/5.3.0/check-api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ <h2><a class="anchor" aria-hidden="true" id="oneofvalidationchains-message"></a>
118118
res.json(...);
119119
} <span class="hljs-keyword">catch</span> (err) {
120120
<span class="hljs-comment">// Oh noes. This user doesn't have enough skills for this...</span>
121-
res.status(<span class="hljs-number">422</span>).json(...);
121+
res.status(<span class="hljs-number">400</span>).json(...);
122122
}
123123
});
124124
</code></pre>

docs/5.3.0/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <h2><a class="anchor" aria-hidden="true" id="basic-guide"></a><a href="#basic-gu
9090
<span class="hljs-comment">// Finds the validation errors in this request and wraps them in an object with handy functions</span>
9191
<span class="hljs-keyword">const</span> errors = validationResult(req);
9292
<span class="hljs-keyword">if</span> (!errors.isEmpty()) {
93-
<span class="hljs-keyword">return</span> res.status(<span class="hljs-number">422</span>).json({ <span class="hljs-attr">errors</span>: errors.array() });
93+
<span class="hljs-keyword">return</span> res.status(<span class="hljs-number">400</span>).json({ <span class="hljs-attr">errors</span>: errors.array() });
9494
}
9595

9696
User.create({

docs/5.3.1/check-api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ <h2><a class="anchor" aria-hidden="true" id="oneofvalidationchains-message"></a>
118118
res.json(...);
119119
} <span class="hljs-keyword">catch</span> (err) {
120120
<span class="hljs-comment">// Oh noes. This user doesn't have enough skills for this...</span>
121-
res.status(<span class="hljs-number">422</span>).json(...);
121+
res.status(<span class="hljs-number">400</span>).json(...);
122122
}
123123
});
124124
</code></pre>

docs/5.3.1/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <h2><a class="anchor" aria-hidden="true" id="basic-guide"></a><a href="#basic-gu
9090
<span class="hljs-comment">// Finds the validation errors in this request and wraps them in an object with handy functions</span>
9191
<span class="hljs-keyword">const</span> errors = validationResult(req);
9292
<span class="hljs-keyword">if</span> (!errors.isEmpty()) {
93-
<span class="hljs-keyword">return</span> res.status(<span class="hljs-number">422</span>).json({ <span class="hljs-attr">errors</span>: errors.array() });
93+
<span class="hljs-keyword">return</span> res.status(<span class="hljs-number">400</span>).json({ <span class="hljs-attr">errors</span>: errors.array() });
9494
}
9595

9696
User.create({

docs/6.0.0/check-api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ <h2><a class="anchor" aria-hidden="true" id="oneofvalidationchains-message"></a>
118118
res.json(...);
119119
} <span class="hljs-keyword">catch</span> (err) {
120120
<span class="hljs-comment">// Oh noes. This user doesn't have enough skills for this...</span>
121-
res.status(<span class="hljs-number">422</span>).json(...);
121+
res.status(<span class="hljs-number">400</span>).json(...);
122122
}
123123
});
124124
</code></pre>

docs/6.0.0/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <h2><a class="anchor" aria-hidden="true" id="basic-guide"></a><a href="#basic-gu
9090
<span class="hljs-comment">// Finds the validation errors in this request and wraps them in an object with handy functions</span>
9191
<span class="hljs-keyword">const</span> errors = validationResult(req);
9292
<span class="hljs-keyword">if</span> (!errors.isEmpty()) {
93-
<span class="hljs-keyword">return</span> res.status(<span class="hljs-number">422</span>).json({ <span class="hljs-attr">errors</span>: errors.array() });
93+
<span class="hljs-keyword">return</span> res.status(<span class="hljs-number">400</span>).json({ <span class="hljs-attr">errors</span>: errors.array() });
9494
}
9595

9696
User.create({

docs/6.0.0/running-imperatively.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ <h2><a class="anchor" aria-hidden="true" id="example-standardized-validation-err
7171
<span class="hljs-keyword">return</span> next();
7272
}
7373

74-
res.status(<span class="hljs-number">422</span>).json({ <span class="hljs-attr">errors</span>: errors.array() });
74+
res.status(<span class="hljs-number">400</span>).json({ <span class="hljs-attr">errors</span>: errors.array() });
7575
};
7676
};
7777

docs/6.0.0/validation-chain-api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ <h3><a class="anchor" aria-hidden="true" id="runreq"></a><a href="#runreq" aria-
159159

160160
<span class="hljs-keyword">const</span> result = validationResult(req);
161161
<span class="hljs-keyword">if</span> (!result.isEmpty()) {
162-
<span class="hljs-keyword">return</span> res.status(<span class="hljs-number">422</span>).json({ <span class="hljs-attr">errors</span>: result.array() });
162+
<span class="hljs-keyword">return</span> res.status(<span class="hljs-number">400</span>).json({ <span class="hljs-attr">errors</span>: result.array() });
163163
}
164164

165165
<span class="hljs-comment">// user can be created now!</span>

0 commit comments

Comments
 (0)