Comparing version 0.5.25 to 0.5.26
@@ -53,3 +53,3 @@ /** | ||
function getErrorResponse(err) { | ||
var statusCode = err.statusCode || 400; | ||
var statusCode = err.statusCode || 500; | ||
var output = { | ||
@@ -575,3 +575,3 @@ message: 'request failed' | ||
* @param {Object} err The request error, pass null if there was no error. The data and meta parameters will be ignored if this parameter is not null. | ||
* @param {number} [err.statusCode=400] http status code to return | ||
* @param {number} [err.statusCode=500] http status code to return | ||
* @param {string} [err.message=request failed] http response body | ||
@@ -578,0 +578,0 @@ * @param {Object} data request result |
{ | ||
"name": "fetchr", | ||
"version": "0.5.25", | ||
"version": "0.5.26", | ||
"description": "Fetchr augments Flux applications by allowing Flux stores to be used on server and client to fetch data", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -221,3 +221,3 @@ # Fetchr | ||
When an error occurs in your Fetchr CRUD method, you should return an error object to the callback. The error object should contain a `statusCode` (default 400) and `output` property that contains a JSON serializable object which will be sent to the client. | ||
When an error occurs in your Fetchr CRUD method, you should return an error object to the callback. The error object should contain a `statusCode` (default 500) and `output` property that contains a JSON serializable object which will be sent to the client. | ||
@@ -224,0 +224,0 @@ ```js |
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