OptionalcauseReadonlycodeEl code del cuerpo, tal cual. NO_ERROR_CODE si el error no viene del catálogo.
ReadonlydataEl data del cuerpo.
ReadonlyfamilyLa familia del rango: auth, publication, plan_limit... Ver PLANVORTEX_ERROR_RANGES.
Readonlyrequestx-request-id, si el despliegue lo pone. Hoy el servidor no lo emite; un proxy delante sí.
ReadonlyretrySegundos que pidió esperar la cabecera Retry-After, si llegó.
OptionalstackReadonlystatusStatus HTTP, o undefined si nunca hubo respuesta.
StaticstackThe Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
StaticcaptureCreates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`
The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();
OptionalconstructorOpt: FunctionStaticprepare
900-996 — publicaciones, incluidos los límites por red (caracteres, imágenes, duración), los dos frenos de ritmo —978 (demasiado rápido en esta cuenta) y 979 (tope diario de esa red)—, los de Slack (980-986), que empiezan por el más común: 980, la app no está en el canal, y los de Pinterest (987-996), que empiezan igual: 987, la publicación no dice en qué tablero va. Y uno de ellos no es un fallo: el 991 es Pinterest frenando a la aplicación, sale 429 con
Retry-Aftery la respuesta es esperar.