fix: [#3468942] Validates if the Exception is NotFoundHttpException before trying to get the status code from the object.