Response Error

API ReferenceNetworkingResponseResponse Error

Source


Error()

Parameters
  • status — Integeroptional
  • message — Stringoptional
Returns
Error

It works as a standard Javascript Error class, but provides an extra status value.

Access it with:

var Networking = require('networking');
var ResponseError = Networking.Response.Error;

Source


Error.RequestResolve()

Static method of
Error
Parameters
  • request — Networking.Request
Returns
RequestResolve

This error is sent if the request can't be resolved, because no proper handler which can handle the request can be found.

Access it with:

var Networking = require('networking');
var RequestResolveResponseError = Networking.Response.Error.RequestResolve;

Source

results matching ""

    No results matching ""