getCode() === 404) { \Http::abort(404, $error->getMessage(), ($_SERVER['REQUEST_METHOD'] == "POST")); } else { throw $error; } } }