const Rollbar = require('rollbar')
const { isProd } = require('../config')
const { rollbar: rollbarSecret } = require('../secret')

if (isProd) {
  global.rollbar = new Rollbar({
    accessToken: rollbarSecret.accessToken,
    captureUncaught: true,
    captureUnhandledRejections: true,
    checkIgnore: (isUncaught, args) => {
      const err = args[0]

      // Never ignore uncaught errors
      if (isUncaught) return false

      // Ignore 'Bad Request' errors
      if (err.status === 400) return true

      // Ignore 'Not Found' errors
      if (err.status === 404) return true

      // Ignore 'Range Not Satisfiable' errors
      if (err.status === 416) return true

      return false
    }
  })
}

@@ -524,54 +524,220 @@
 re '
-Not Found' errors%0A      if (err.status === 404
+Forbidden' errors%0A      if (err.status === 403) return true%0A%0A      // Ignore 'Not Found' errors%0A      if (err.status === 404) return true%0A%0A      // Ignore 'Precondition Failed' errors%0A      if (err.status === 412
 ) re

Update rollbar.js