File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 11import validateHttpStatus from './utils/validate-http-status' ;
22
33/**
4+ * @module isCreated
5+ * @description
46 * Validate HTTP Status code 201 type SUCCESS
57 *
6- * @param {integer } statusCode - The HTTP Status code
7- * @throws { HTTPStatusError } Will throw an error if the @param {statusCode} is different then 201
8- * @return { boolean }
8+ * @param {Integer } statusCode - The HTTP Status code
9+ * @return { Boolean }
10+ * @throws { HTTPStatusError } When the statusCode is different then 201
911 */
1012function isCreated ( statusCode ) {
1113 return validateHttpStatus ( statusCode , 201 ) ;
Original file line number Diff line number Diff line change 11import validateHttpStatus from './utils/validate-http-status' ;
22
33/**
4+ * @module isOk
5+ * @description
46 * Validate HTTP Status code 200 type SUCCESS
57 *
6- * @param {integer } statusCode - The HTTP Status code
7- * @throws { HTTPStatusError } Will throw an error if the @param {statusCode} is different then 200
8- * @return { boolean }
8+ * @param {Integer } statusCode - The HTTP Status code
9+ * @return { Boolean }
10+ * @throws { HTTPStatusError } When the statusCode is different then 200
911 */
1012function isOk ( statusCode ) {
1113 return validateHttpStatus ( statusCode , 200 ) ;
You can’t perform that action at this time.
0 commit comments