This documentation is deprecated. Please refer our new documentation here

FAQAPMHow can I exclude HTTP status codes in APM error tracking?

By default, Atatus APM captures all HTTP errors (i.e all 4xx and 5xx status codes) except the status code 404. You can change this behavior by setting the array option ignoreStatusCodes. This option can have array of status codes to be ignored i.e it will not reported as an error to Atatus.

var atatus = require("atatus-nodejs");
  licenseKey: "YOUR_LICENSE_KEY",
  appName: "YOUR_APP_NAME",
  ignoreStatusCodes: [ 400, 404, 500 ]